From: Michael R Sweet Date: Mon, 17 Jul 2017 23:49:27 +0000 (-0400) Subject: Fix authorization checks on macOS (no longer /etc/authorization, but now we don't... X-Git-Tag: v2.2.5~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2d605ff778b36f672ff1881059510e806389a2d;p=thirdparty%2Fcups.git Fix authorization checks on macOS (no longer /etc/authorization, but now we don't need to look for the old names from 10.5...) --- diff --git a/config-scripts/cups-common.m4 b/config-scripts/cups-common.m4 index e204e965fd..c86f9b9056 100644 --- a/config-scripts/cups-common.m4 +++ b/config-scripts/cups-common.m4 @@ -388,20 +388,15 @@ case $host_os_name in if test "x$default_adminkey" != xdefault; then CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey" CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey" - elif grep -q system.print.operator /etc/authorization; then + else CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin" CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin" - else - CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences" - CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences" fi if test "x$default_operkey" != xdefault; then CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin" - elif grep -q system.print.operator /etc/authorization; then - CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" else - CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin" + CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" fi]) AC_CHECK_HEADER(Security/SecBasePriv.h,AC_DEFINE(HAVE_SECBASEPRIV_H))