~ubuntu-branches/ubuntu/raring/sudo/raring

« back to all changes in this revision

Viewing changes to include/missing.h

  • Committer: Package Import Robot
  • Author(s): Tyler Hicks
  • Date: 2012-07-16 14:01:42 UTC
  • mfrom: (1.3.22 sid)
  • Revision ID: package-import@ubuntu.com-20120716140142-b0tgau0k6nid4mrf
Tags: 1.8.5p2-1ubuntu1
* Merge from debian/testing (LP: #1024154), remaining changes:
  - debian/patches/keep_home_by_default.patch:
    + Set HOME in initial_keepenv_table.
  - debian/rules:
    + compile with --without-lecture --with-tty-tickets (Ubuntu specific)
    + install man/man8/sudo_root.8 in both flavours (Ubuntu specific)
    + install apport hooks
    + The ubuntu-sudo-as-admin-successful.patch was taken upstream by
      Debian however it requires a --enable-admin-flag configure flag to
      actually enable it in both flavours.
  - debian/control:
    + Mark Debian Vcs-* as XS-Debian-Vcs-*
    + update debian/control
  - debian/sudoers:
    + grant admin group sudo access
  - debian/source_sudo.py, debian/sudo-ldap.dirs, debian/sudo.dirs:
    + add usr/share/apport/package-hooks
  - debian/sudo.pam:
    + Use pam_env to read /etc/environment and /etc/default/locale
      environment files. Reading ~/.pam_environment is not permitted due to
      security reasons.
* Dropped changes:
  - debian/patches/lp927828-fix-abort-in-pam-modules-when-timestamp-valid.patch
    + Fixed upstream in 1.8.5
  - debian/patches/CVE-2012-2337.patch:
    + Fixed upstream in 1.8.4p5
  - debian/patches/pam_env_merge.patch:
    + Feature released upstream in 1.8.5
  - debian/{sudo,sudo-ldap}.{preinst,postinst,postrm}:
    + Drop Ubuntu-specific sudoers file migration code because the only
      upgrade path to quantal is from precise. All necessary sudoers file
      migration will have already been done by the time this version of the
      sudo package is installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
# define __attribute__(x)
35
35
#endif
36
36
 
37
 
/* For silencing gcc warnings about rcsids */
38
 
#ifndef __unused
39
 
# if defined(__GNUC__) && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 7)
40
 
#  define __unused      __attribute__((__unused__))
41
 
# else
42
 
#  define __unused
43
 
# endif
44
 
#endif
45
 
 
46
37
/* For catching format string mismatches */
47
38
#ifndef __printflike
48
39
# if defined(__GNUC__) && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 7)
132
123
#endif
133
124
 
134
125
/*
 
126
 * Older systems may be missing stddef.h and/or offsetof macro
 
127
 */
 
128
#ifndef offsetof
 
129
# ifdef __offsetof
 
130
#  define offsetof(type, field) __offsetof(type, field)
 
131
# else
 
132
#  define offsetof(type, field) ((size_t)(&((type *)0)->field))
 
133
# endif
 
134
#endif
 
135
 
 
136
/*
135
137
 * Simple isblank() macro and function for systems without it.
136
138
 */
137
139
#ifndef HAVE_ISBLANK
335
337
#ifndef HAVE_NANOSLEEP
336
338
int nanosleep(const struct timespec *, struct timespec *);
337
339
#endif
 
340
#ifndef HAVE_PW_DUP
 
341
struct passwd *pw_dup(const struct passwd *);
 
342
#endif
338
343
#ifndef HAVE_SETENV
339
344
int setenv(const char *, const char *, int);
340
345
#endif