Make that setgid...
authorMark Spencer <markster@digium.com>
Sun, 18 Jul 2004 18:52:36 +0000 (18:52 +0000)
committerMark Spencer <markster@digium.com>
Sun, 18 Jul 2004 18:52:36 +0000 (18:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3472 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c

index e831b65..2b4b93b 100755 (executable)
@@ -1623,7 +1623,7 @@ int main(int argc, char *argv[])
                        ast_log(LOG_WARNING, "No such group '%s'!\n", rungroup);
                        exit(1);
                }
-               if (setuid(gr->gr_gid)) {
+               if (setgid(gr->gr_gid)) {
                        ast_log(LOG_WARNING, "Unable to setgid to %d (%s)\n", gr->gr_gid, rungroup);
                        exit(1);
                }