diff --git a/cups-pk-helper-requesting-user-name.patch b/cups-pk-helper-requesting-user-name.patch new file mode 100644 index 0000000..64f41b4 --- /dev/null +++ b/cups-pk-helper-requesting-user-name.patch @@ -0,0 +1,11 @@ +--- cups-pk-helper-0.1.3/src/cups.c 2011-10-27 14:02:04.000000000 +0200 ++++ cups-pk-helper-0.1.3/src/cups.c 2011-10-27 14:39:06.000000000 +0200 +@@ -2209,6 +2209,8 @@ cph_cups_job_get_status (CphCups *cup + "requested-attributes", 1, NULL, attrs); + + resource_char = _cph_cups_get_resource (CPH_RESOURCE_ROOT); ++ ippAddString (request, IPP_TAG_OPERATION, IPP_TAG_NAME, ++ "requesting-user-name", NULL, cupsUser ()); + reply = cupsDoRequest (cups->priv->connection, + request, resource_char); + diff --git a/cups-pk-helper.spec b/cups-pk-helper.spec index f2bd2f0..45e5c02 100644 --- a/cups-pk-helper.spec +++ b/cups-pk-helper.spec @@ -1,6 +1,6 @@ Name: cups-pk-helper Version: 0.1.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A helper that makes system-config-printer use PolicyKit Group: System Environment/Base @@ -12,6 +12,7 @@ Patch0: cups-pk-helper-check-mechanism.patch Patch1: cups-pk-helper-add-printer-ppd-optional.patch Patch2: polkit_result.patch Patch3: allow_authentication.patch +Patch4: cups-pk-helper-requesting-user-name.patch BuildRequires: libtool >= 1.4.3 BuildRequires: cups-devel >= 1.2 @@ -44,6 +45,7 @@ interfaces available under control of PolicyKit. %patch1 -p1 -b .ppd %patch2 -p1 -b .polkit-result %patch3 -p1 -b .allow_auth +%patch4 -p1 -b .requesting-user-name %build @@ -71,6 +73,10 @@ make install DESTDIR=$RPM_BUILD_ROOT %changelog +* Thu Oct 27 2011 Marek Kasik - 0.1.3-3 +- Set requesting-user-name for IPP_GET_JOB_ATTRIBUTES +- Resolves: #743886 + * Fri Sep 2 2011 Marek Kasik - 0.1.3-2 - Make ppd-name parameter optional - Readd patch for allowing authentication for any and inactive users