diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-12-21 15:14:52 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-12-21 15:14:52 +0000 |
commit | bca1033817d6b1957b98f62f41673608217389c2 (patch) | |
tree | 80cf074b74f049f1e7fba26a39ae4b95b205c35f | |
parent | 88f27c8279869226aa518ce314bae6cafb003ad1 (diff) |
Merged revisions 94418 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r94418 | tilghman | 2007-12-21 09:07:42 -0600 (Fri, 21 Dec 2007) | 2 lines
Fix for restart-as-user problem reported via the -dev list
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 60b25444d..ea464b76a 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -2959,7 +2959,7 @@ int main(int argc, char *argv[]) ast_log(LOG_WARNING, "Unable to setgid to %d!\n", (int)pw->pw_gid); exit(1); } - if (initgroups(pw->pw_name, pw->pw_gid)) { + if (isroot && initgroups(pw->pw_name, pw->pw_gid)) { ast_log(LOG_WARNING, "Unable to init groups for '%s'\n", runuser); exit(1); } |