[svn-commits] tilghman: branch 1.4 r94418 - /branches/1.4/main/asterisk.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Dec 21 09:07:43 CST 2007


Author: tilghman
Date: Fri Dec 21 09:07:42 2007
New Revision: 94418

URL: http://svn.digium.com/view/asterisk?view=rev&rev=94418
Log:
Fix for restart-as-user problem reported via the -dev list

Modified:
    branches/1.4/main/asterisk.c

Modified: branches/1.4/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=94418&r1=94417&r2=94418
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Fri Dec 21 09:07:42 2007
@@ -2749,7 +2749,7 @@
 				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);
 			}




More information about the svn-commits mailing list