~ubuntu-branches/ubuntu/raring/gnupg2/raring-proposed

« back to all changes in this revision

Viewing changes to tools/watchgnupg.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-08-23 20:48:11 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090823204811-cajik24rci4xszia
Tags: 2.0.12-1
* New upstream release. (Closes: #499569, #463270, #446494, #314068, 
  #519375, #514587)
* debian/control: Change build dependency on gs to ghoscript, since
  ghoscript has been replaced.
* debian/compat: Use debhelper v7.
* debian/control: Update Standards-Version to 3.8.2.
* debian/control: Use ${misc:Depends}.
* configure.ac: Override pkgdatadir so that it points to
  /usr/share/gnupg2. (Closes: #528734)
* debian/rules: No longer need to specify pkgdatadir at make install
  time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
#define PGM "watchgnupg"
37
37
 
38
 
/* Allow for a standalone build. */
 
38
/* Allow for a standalone build on most systems. */
39
39
#ifdef VERSION
40
40
#define MYVERSION_LINE PGM " (GnuPG) " VERSION
41
41
#define BUGREPORT_LINE "\nReport bugs to <bug-gnupg@gnu.org>.\n"
43
43
#define MYVERSION_LINE PGM 
44
44
#define BUGREPORT_LINE ""
45
45
#endif
46
 
 
47
 
#ifndef PF_LOCAL
48
 
# ifdef PF_UNIX
49
 
#  define PF_LOCAL PF_UNIX
50
 
# else
51
 
#  define PF_LOCAL AF_UNIX
52
 
# endif
53
 
# ifndef AF_LOCAL
54
 
#  define AF_LOCAL AF_UNIX
55
 
# endif
 
46
#if !defined(SUN_LEN) || !defined(PF_LOCAL) || !defined(AF_LOCAL)
 
47
#define JNLIB_NEED_AFLOCAL
 
48
#include "../jnlib/mischelp.h"
56
49
#endif
57
50
 
58
51
 
285
278
  srvr_addr.sun_family = AF_LOCAL;
286
279
  strncpy (srvr_addr.sun_path, *argv, sizeof (srvr_addr.sun_path) - 1);
287
280
  srvr_addr.sun_path[sizeof (srvr_addr.sun_path) - 1] = 0;
288
 
  addrlen = (offsetof (struct sockaddr_un, sun_path)
289
 
             + strlen (srvr_addr.sun_path) + 1);
 
281
  addrlen = SUN_LEN (&srvr_addr);
290
282
 
291
283
  
292
284
 again: