From: mike Date: Wed, 1 Oct 2008 21:20:33 +0000 (+0000) Subject: Print the value of TMPDIR in the test notifier (used for "make check" to X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4c5e9a72be9f3ca0bc0c2e717dd06fbe773d22b;p=thirdparty%2Fcups.git Print the value of TMPDIR in the test notifier (used for "make check" to 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 --- diff --git a/notifier/testnotify.c b/notifier/testnotify.c index 96e9dd1426..eaa3e7391f 100644 --- a/notifier/testnotify.c +++ b/notifier/testnotify.c @@ -52,6 +52,7 @@ main(int argc, /* I - Number of command-line arguments */ 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 (;;) { diff --git a/scheduler/ipp.c b/scheduler/ipp.c index 191b36bc47..5df7628847 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -2758,8 +2758,11 @@ add_printer(cupsd_client_t *con, /* I - Client connection */ * (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 @@ -2820,8 +2823,11 @@ add_printer(cupsd_client_t *con, /* I - Client connection */ * (Re)register color profiles... */ - apple_unregister_profiles(printer); - apple_register_profiles(printer); + if (!RunUser) + { + apple_unregister_profiles(printer); + apple_register_profiles(printer); + } #endif /* __APPLE__ */ } }