Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'confirmed from source code' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
confirmed from source code
Authored by: hayne on Dec 07, '06 10:14:18AM
I can confirm from looking at the source code for SystemStarter (available as part of the "Darwin" open source - under the 'launchd' folder) that any StartupItems sub-folder that has a ".disabled" file in it will be skipped.

The relevant source code is the following lines in the function 'StartupItemListCreateWithMask' in StartupItems.c:


sprintf(aDisabledFile, "%s/%s", aBundlePath, kDisabledFile);

if (lstat(aDisabledFile, &aStatBuf) == 0) {
    syslog(LOG_NOTICE, "Skipping disabled StartupItem: %s", aBundlePath);
    continue;
}
where kDisabledFile was previously defined as:

#define kDisabledFile ".disabled"
And I also have failed to find any mention of this feature in the documentation.

[ Reply to This | # ]
confirmed from source code
Authored by: mantrid on Dec 07, '06 11:34:01AM

I think this is how StartupItems with insecure permissions are disabled in 10.4 - I know I've seen ".disabled" files discussed before...



[ Reply to This | # ]
confirmed from source code
Authored by: mantrid on Dec 07, '06 11:36:07AM
Sorry, I should have searched first. One reference, anyway
http://docs.info.apple.com/article.html?artnum=300962

[ Reply to This | # ]
confirmed from source code
Authored by: LouieNet on Dec 16, '06 06:52:41AM

Thanks, hayne & mantrid!

I guess I wasn't searching on the right terms at the Apple site. *shrug*

---
G4 cube, 17" Powerbook G4, iMac 20", Mac mini, PowerMac 7500 (w/ G4 upgrade card)



[ Reply to This | # ]