summaryrefslogtreecommitdiff
path: root/usr/src/cmd/print/bsd-sysv-commands/cancel.c
diff options
context:
space:
mode:
authorsonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>2009-03-02 23:02:05 -0800
committersonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>2009-03-02 23:02:05 -0800
commit6b5764c36d253d178caa447fa2a6d7e0c7dfd6e6 (patch)
tree020e6ceafe5619e674caeecfcbadaeaae1c335d4 /usr/src/cmd/print/bsd-sysv-commands/cancel.c
parentd4f98ef9325ff1018a7e263b4c728ba236519b51 (diff)
downloadillumos-joyent-6b5764c36d253d178caa447fa2a6d7e0c7dfd6e6.tar.gz
6759604 general user on the lp client can cancel root user's print job
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/cancel.c')
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/cancel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/cancel.c b/usr/src/cmd/print/bsd-sysv-commands/cancel.c
index 82996e4630..7fbdbb8db3 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/cancel.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/cancel.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*/
@@ -60,7 +60,7 @@ cancel_jobs_for_user(char *user, papi_encryption_t encryption, char *pname) {
int i, exit_code;
if (pname == NULL) {
- status = papiServiceCreate(&svc, NULL, user, NULL,
+ status = papiServiceCreate(&svc, NULL, NULL, NULL,
cli_auth_callback, encryption, NULL);
printers = interest_list(svc);
papiServiceDestroy(svc);
@@ -74,7 +74,7 @@ cancel_jobs_for_user(char *user, papi_encryption_t encryption, char *pname) {
for (i = 0; printers[i] != NULL; i++) {
char *printer = printers[i];
- status = papiServiceCreate(&svc, printer, user, NULL,
+ status = papiServiceCreate(&svc, printer, NULL, NULL,
cli_auth_callback, encryption, NULL);
if (status != PAPI_OK) {
@@ -129,7 +129,7 @@ main(int ac, char *av[])
(void) get_printer_id(av[c], &printer, &id);
- status = papiServiceCreate(&svc, printer, user, NULL,
+ status = papiServiceCreate(&svc, printer, NULL, NULL,
cli_auth_callback, encryption, NULL);
if (status != PAPI_OK) {
fprintf(stderr,