diff options
author | Jim Meyering <jim@meyering.net> | 1994-10-11 01:56:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-10-11 01:56:53 +0000 |
commit | d3a7a3d262f8a68717d18acdbe338e7b35d4486a (patch) | |
tree | 20de70d59c40837fa13741798687bbd9bbff6534 /src | |
parent | d3d49453a4924c7a0bb92ad9a6aa1c9475ca28ee (diff) | |
download | coreutils-d3a7a3d262f8a68717d18acdbe338e7b35d4486a.tar.xz |
.
Diffstat (limited to 'src')
-rw-r--r-- | src/id.c | 4 | ||||
-rw-r--r-- | src/su.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -240,7 +240,7 @@ print_group_list (username) print_group (egid); } -#ifdef NGROUPS_MAX +#if defined(NGROUPS_MAX) && defined(HAVE_GETGROUPS) { int ngroups; GETGROUPS_T *groups; @@ -313,7 +313,7 @@ print_full_info (username) printf ("(%s)", grp->gr_name); } -#ifdef NGROUPS_MAX +#if defined(NGROUPS_MAX) && defined(HAVE_GETGROUPS) { int ngroups; GETGROUPS_T *groups; @@ -77,7 +77,7 @@ #include <grp.h> #include "system.h" -#ifdef HAVE_SYSLOG_H +#if defined(HAVE_SYSLOG_H) && defined(HAVE_SYSLOG) #include <syslog.h> static void log_su (); #else /* !HAVE_SYSLOG_H */ @@ -397,7 +397,7 @@ static void change_identity (pw) struct passwd *pw; { -#ifdef NGROUPS_MAX +#ifdef HAVE_INITGROUPS errno = 0; if (initgroups (pw->pw_name, pw->pw_gid) == -1) error (1, errno, "cannot set groups"); |