]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug #392 - using wrong group id for account
authorDanny Mayer <mayer@ntp.org>
Mon, 28 Feb 2005 18:21:47 +0000 (13:21 -0500)
committerDanny Mayer <mayer@ntp.org>
Mon, 28 Feb 2005 18:21:47 +0000 (13:21 -0500)
bk: 4223613bYg0Srjh7fYmb7s2ZA0U9cQ

ntpd/ntpd.c

index e07efba6a29af9a7d2df71f07f0248fb37fb8fab..5954c0daf22a6a16b19fe421d28f95b1750916a1 100644 (file)
@@ -759,7 +759,7 @@ getuser:
                        } else {
 getgroup:      
                                if ((gr = getgrnam(group)) != NULL) {
-                                       sw_gid = gr->pw_gid;
+                                       sw_gid = gr->pr_gid;
                                } else {
                                        errno = 0;
                                        msyslog(LOG_ERR, "Cannot find group `%s'", group);