verify that cupsd is passing the TMPDIR environment variable...)
Don't try to register/unregister profiles on Mac OS X when we are not
running as root.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@7997
7a7537e8-13f0-0310-91df-
b6672ffda945
fprintf(stderr, "DEBUG: argc=%d\n", argc);
for (i = 0; i < argc; i ++)
fprintf(stderr, "DEBUG: argv[%d]=\"%s\"\n", i, argv[i]);
+ fprintf(stderr, "DEBUG: TMPDIR=\"%s\"\n", getenv("TMPDIR"));
for (;;)
{
* (Re)register color profiles...
*/
- apple_unregister_profiles(printer);
- apple_register_profiles(printer);
+ if (!RunUser)
+ {
+ apple_unregister_profiles(printer);
+ apple_register_profiles(printer);
+ }
#endif /* __APPLE__ */
}
else
* (Re)register color profiles...
*/
- apple_unregister_profiles(printer);
- apple_register_profiles(printer);
+ if (!RunUser)
+ {
+ apple_unregister_profiles(printer);
+ apple_register_profiles(printer);
+ }
#endif /* __APPLE__ */
}
}