]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990)
authorMichael R Sweet <msweet@msweet.org>
Wed, 14 Aug 2024 03:21:15 +0000 (23:21 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 14 Aug 2024 03:21:15 +0000 (23:21 -0400)
scheduler/policy.c

index f3ffd0720c7db645c94584dd67f50b1909cc7531..f76f58f0da91a9b6cdcd59955e18d84f92cd983f 100644 (file)
@@ -2,10 +2,11 @@
  * Policy routines for the CUPS scheduler.
  *
  * Copyright © 2020-2024 by OpenPrinting.
- * Copyright 2007-2011, 2014 by Apple Inc.
- * Copyright 1997-2006 by Easy Software Products, all rights reserved.
+ * Copyright © 2007-2011, 2014 by Apple Inc.
+ * Copyright © 1997-2006 by Easy Software Products, all rights reserved.
  *
- * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more
+ * information.
  */
 
 /*
@@ -318,6 +319,10 @@ cupsdGetPrivateAttrs(
 
     return (NULL);
   }
+  else if (name && !_cups_strcasecmp(name, "all"))
+  {
+    return (attrs_ptr);
+  }
 
  /*
   * Otherwise check the user against the access list...