]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure we still register a profile slot on OS X, even if the profile itself
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 18 Apr 2013 14:26:43 +0000 (14:26 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 18 Apr 2013 14:26:43 +0000 (14:26 +0000)
can't be registered for security/access reasons.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10949 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.6.txt
scheduler/colorman.c

index 03dcd167159a815997e78ed8f12cb6ba3711e27d..e5d08e7fea56d3955ccb702416a64a1c36575f58 100644 (file)
@@ -5,6 +5,8 @@ CHANGES IN CUPS V1.6.3
 
        - The configure script now prefers Clang over GCC.
        - Fixed a compile problem on AIX (STR #4307)
+       - Insecure ICC profiles prevented installation of user profiles for a
+         printer on OS X.
        - Added more USB quirks for the libusb-based backend (STR #4311)
        - The Russian web interface templates were broken (STR #4310)
        - The scheduler no longer tries to do Kerberos authentication over the
index a5838503d6c1e650dd3140991e451312714c08b4..8aa5913f99fce7278b6e18334f7125198795972b 100644 (file)
  *
  * Contents:
  *
+ *   cupsdRegisterColor()         - Register vendor color profiles in a PPD
+ *                                  file.
+ *   cupsdStartColor()            - Initialize color management.
+ *   cupsdStopColor()             - Shutdown color management.
+ *   cupsdUnregisterColor()       - Unregister vendor color profiles in a PPD
+ *                                  file.
+ *   apple_init_profile()         - Initialize a color profile.
+ *   apple_register_profiles()    - Register color profiles for a printer.
+ *   apple_unregister_profiles()   - Remove color profiles for the specified
+ *                                  printer.
+ *   colord_create_device()       - Create a device and register profiles.
+ *   colord_create_profile()      - Create a color profile for a printer.
+ *   colord_delete_device()       - Delete a device
+ *   colord_device_add_profile()   - Assign a profile to a device.
+ *   colord_dict_add_strings()    - Add two strings to a dictionary.
+ *   colord_find_device()         - Finds a device
+ *   colord_get_qualifier_format() - Get the qualifier format.
+ *   colord_register_printer()    - Register profiles for a printer.
+ *   colord_unregister_printer()   - Unregister profiles for a printer.
  */
 
 /*
@@ -307,7 +326,7 @@ apple_init_profile(
   * Fill in the profile data...
   */
 
- if (iccfile)
+ if (iccfile && *iccfile)
  {
     url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault,
                                                  (const UInt8 *)iccfile,
@@ -497,7 +516,7 @@ apple_register_profiles(
 
         if (_cupsFileCheck(iccfile, _CUPS_FILE_CHECK_FILE, !RunUser,
                           cupsdLogFCMessage, p))
-         continue;
+         iccfile[0] = '\0';
 
        cupsArraySave(ppd->sorted_attrs);