Revision: 23429 http://trac.macosforge.org/projects/launchd/changeset/23429 Author: zarzycki@apple.com Date: 2007-09-25 10:15:32 -0700 (Tue, 25 Sep 2007) Log Message: ----------- <rdar://problem/5503536> just installed startupitem will not start Modified Paths: -------------- trunk/launchd/src/StartupItems.c Modified: trunk/launchd/src/StartupItems.c =================================================================== --- trunk/launchd/src/StartupItems.c 2007-09-23 18:44:41 UTC (rev 23428) +++ trunk/launchd/src/StartupItems.c 2007-09-25 17:15:32 UTC (rev 23429) @@ -239,7 +239,11 @@ syslog(LOG_ERR, "lstat(\"%s\"): %m", aPath); return false; } - if (aStatBuf.st_ctimespec.tv_sec > boot_time.tv_sec) { + /* + * We check the boot time because of 5409386. + * We ignore the boot time if PPID != 1 because of 5503536. + */ + if ((aStatBuf.st_ctimespec.tv_sec > boot_time.tv_sec) && (getppid() == 1)) { syslog(LOG_WARNING, "\"%s\" failed sanity check: path was created after boot up", aPath); return false; }
participants (1)
-
source_changes@macosforge.org