cups-pk-helper/cups-pk-helper-requesting-user-name.patch

12 lines
590 B
Diff
Raw Normal View History

--- 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);