From: Michael R Sweet Date: Wed, 14 Aug 2024 03:21:15 +0000 (-0400) Subject: Fix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e239d560c8b78685d8f4397b8d51c7301123e58;p=thirdparty%2Fcups.git Fix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990) --- diff --git a/scheduler/policy.c b/scheduler/policy.c index f3ffd0720c..f76f58f0da 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...