summaryrefslogtreecommitdiffstats
path: root/include/pathnames.h
diff options
context:
space:
mode:
authorKarel Zak2007-03-21 23:07:25 +0100
committerKarel Zak2007-03-21 23:07:25 +0100
commit66a9411eb0dec245b0dd781837442586521b5550 (patch)
tree24031b06219e575d5740d7f1eb30370a40d8d098 /include/pathnames.h
parentnewgrp: check result from getgrnam() more carefully (diff)
downloadkernel-qcow2-util-linux-66a9411eb0dec245b0dd781837442586521b5550.tar.gz
kernel-qcow2-util-linux-66a9411eb0dec245b0dd781837442586521b5550.tar.xz
kernel-qcow2-util-linux-66a9411eb0dec245b0dd781837442586521b5550.zip
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 d9e05b321..ec2c236ba 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"