From 66a9411eb0dec245b0dd781837442586521b5550 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 21 Mar 2007 23:07:25 +0100 Subject: 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 --- include/pathnames.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/pathnames.h') 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" -- cgit v1.2.3-55-g7522