Skip to content
Snippets Groups Projects
Commit 8a496729 authored by Mark Spencer's avatar Mark Spencer
Browse files

Make that setgid...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent dc602396
Branches
Tags
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment