From: Danny Mayer Date: Fri, 11 Feb 2005 04:28:14 +0000 (-0500) Subject: Group ID was being obtained incorrectly. See message from Martin Pitt - Debian develo... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b57fa36c86b045cb5f31f10c0aaed80697dc2c8;p=thirdparty%2Fntp.git Group ID was being obtained incorrectly. See message from Martin Pitt - Debian development bk: 420c345e-_fP0qhWa0t0NWoYS-A8UQ --- diff --git a/ntpd/ntpd.c b/ntpd/ntpd.c index dbbacf3d8e..3da1c7a82d 100644 --- a/ntpd/ntpd.c +++ b/ntpd/ntpd.c @@ -757,7 +757,7 @@ getuser: } else { getgroup: if ((gr = getgrnam(group)) != NULL) { - sw_gid = pw->pw_gid; + sw_gid = gr->pw_gid; } else { errno = 0; msyslog(LOG_ERR, "Cannot find group `%s'", group);