summaryrefslogtreecommitdiff
path: root/include/pathnames.h
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2007-03-21 23:07:25 +0100
committerKarel Zak <kzak@redhat.com>2007-03-21 23:07:25 +0100
commit66a9411eb0dec245b0dd781837442586521b5550 (patch)
tree24031b06219e575d5740d7f1eb30370a40d8d098 /include/pathnames.h
parentac70067ae67d22b5c8305eac87acec5cdf8059e3 (diff)
downloadutil-linux-old-66a9411eb0dec245b0dd781837442586521b5550.tar.gz
newgrp: add support for /etc/gshadow
The original newgrp command doesn't expect group pasword in /etc/gshadow although almost all distributions use this file (and the gpasswd command). The newgrp from util-linux is deprecated and better is use shadow-utils only. Unfortunately, shadow-utils are broken too (see RH version where is bugfix). In this case it's better fix util-linux version at least... Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r--include/pathnames.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index d9e05b32..ec2c236b 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -134,6 +134,9 @@ Libc5 and glibc 2.0-2.1 have /var/spool/mail, but glibc 2.1.1 has /var/mail.
/* used in login-utils/setpwnam.h and login-utils/islocal.c */
#define _PATH_PASSWD "/etc/passwd"
+/* used in login-utils/newgrp */
+#define _PATH_GSHADOW "/etc/gshadow"
+
/* used in login-utils/setpwnam.h */
#define _PATH_PTMP "/etc/ptmp"
#define _PATH_PTMPTMP "/etc/ptmptmp"