[cups-pk-helper/f16] Set requesting-user-name for IPP_GET_JOB_ATTRIBUTES

mkasik mkasik at fedoraproject.org
Thu Oct 27 14:20:50 UTC 2011


commit 0ba617ab525bc4735289686a6c08dcb73b79725e
Author: Marek Kasik <mkasik at redhat.com>
Date:   Thu Oct 27 16:11:37 2011 +0200

    Set requesting-user-name for IPP_GET_JOB_ATTRIBUTES
    
    Resolves: #743886

 cups-pk-helper-requesting-user-name.patch |   11 +++++++++++
 cups-pk-helper.spec                       |    8 +++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
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 <mkasik at redhat.com> - 0.1.3-3
+- Set requesting-user-name for IPP_GET_JOB_ATTRIBUTES
+- Resolves: #743886
+
 * Fri Sep  2 2011 Marek Kasik <mkasik at redhat.com> - 0.1.3-2
 - Make ppd-name parameter optional
 - Readd patch for allowing authentication for any and inactive users


More information about the scm-commits mailing list