From: Michael R Sweet Date: Wed, 14 Aug 2024 03:23:56 +0000 (-0400) Subject: Fix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990) X-Git-Tag: v2.4.11~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1101b8974beeeafd2b113bc32d9c95e9fe25b982;p=thirdparty%2Fcups.git Fix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990) --- diff --git a/CHANGES.md b/CHANGES.md index f7063cb6ca..a3c07a9fa3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,8 @@ Changes in CUPS v2.4.11 (YYYY-MM-DD) - Updated the maximum file descriptor limit for `cupsd` to 64k-1 (Issue #989) - Fixed incorrect error message for HTTP/IPP errors (Issue #893) +- Fixed JobPrivateAccess and SubscriptionPrivateAccess support for "all" + (Issue #990) - Fixed issues with cupsGetDestMediaByXxx (Issue #993) - Fixed adding and modifying of printers via the web interface (Issue #998) - Fixed checkbox support (Issue #1008) diff --git a/scheduler/policy.c b/scheduler/policy.c index 884e499e00..f6b25e0db6 100644 --- a/scheduler/policy.c +++ b/scheduler/policy.c @@ -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...