[launchd-changes] [23366] trunk/launchd/src/launchd_core_logic.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 10 13:40:30 PDT 2007
Revision: 23366
http://trac.macosforge.org/projects/launchd/changeset/23366
Author: zarzycki at apple.com
Date: 2007-09-10 13:40:29 -0700 (Mon, 10 Sep 2007)
Log Message:
-----------
<rdar://problem/5425348> GroupName key now ignored when UserName key is not set
Modified Paths:
--------------
trunk/launchd/src/launchd_core_logic.c
Modified: trunk/launchd/src/launchd_core_logic.c
===================================================================
--- trunk/launchd/src/launchd_core_logic.c 2007-09-10 18:38:14 UTC (rev 23365)
+++ trunk/launchd/src/launchd_core_logic.c 2007-09-10 20:40:29 UTC (rev 23366)
@@ -2619,6 +2619,14 @@
return;
}
+ /*
+ * I contend that having UID == 0 and GID != 0 is of dubious value.
+ * Nevertheless, this used to work in Tiger. See: 5425348
+ */
+ if (j->groupname && !j->username) {
+ j->username = "root";
+ }
+
if (j->username) {
if ((pwe = getpwnam(j->username)) == NULL) {
job_log(j, LOG_ERR, "getpwnam(\"%s\") failed", j->username);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070910/266896c8/attachment.html
More information about the launchd-changes
mailing list