From 07f4bbbf1deeabe3db8bf84faea657ea9f6d3255 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 9 Mar 2001 14:26:54 +0000 Subject: [PATCH] Send requesting-user-name attribute for set-job-attributes requests. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@1625 7a7537e8-13f0-0310-91df-b6672ffda945 --- CHANGES.txt | 2 ++ man/lp.man | 27 ++++++++++++++++++++++----- systemv/lp.c | 7 +++++-- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 1c54fa8e54..7064a5d174 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -88,6 +88,8 @@ CHANGES IN CUPS V1.1.7 could cause it to crash. - The LPD backend now sanitizes the job title to avoid potential problems on remote LPD servers. + - The lp command did not send the requesting-user-name + attribute when altering a job. CHANGES IN CUPS V1.1.6-3 diff --git a/man/lp.man b/man/lp.man index a2576247fd..edfd8c6d90 100644 --- a/man/lp.man +++ b/man/lp.man @@ -1,5 +1,5 @@ .\" -.\" "$Id: lp.man,v 1.5 2001/01/23 17:36:21 mike Exp $" +.\" "$Id: lp.man,v 1.6 2001/03/09 14:26:54 mike Exp $" .\" .\" lp/cancel man page for the Common UNIX Printing System (CUPS). .\" @@ -32,8 +32,6 @@ cancel \- cancel jobs .I destination ] [ \-h .I server -] [ \-i -.I job-id ] [ \-m ] [ \-n .I num-copies [ \-o @@ -50,6 +48,25 @@ cancel \- cancel jobs .I file(s) ] .br +.B lp +[ -E ] [ \-c ] [ \-h +.I server +] [ \-i +.I job-id +] [ \-n +.I num-copies +[ \-o +.I option +] [ \-p/q +.I priority +] [ \-t +.I title +] [ \-H +.I handling +] [ \-P +.I page-list +] +.br .B cancel [ \-a ] [ -h .I server @@ -61,7 +78,7 @@ cancel \- cancel jobs .I destination-id ] .SH DESCRIPTION -\fBlp\fR submits files for printing. +\fBlp\fR submits files for printing or alters a pending job. .LP \fBcancel\fR cancels existing print jobs. The \fI-a\fR option will remove all jobs from the specified destination. @@ -135,5 +152,5 @@ http://localhost:631/documentation.html .SH COPYRIGHT Copyright 1993-2001 by Easy Software Products, All Rights Reserved. .\" -.\" End of "$Id: lp.man,v 1.5 2001/01/23 17:36:21 mike Exp $". +.\" End of "$Id: lp.man,v 1.6 2001/03/09 14:26:54 mike Exp $". .\" diff --git a/systemv/lp.c b/systemv/lp.c index 11c83efa5c..dc185a67ba 100644 --- a/systemv/lp.c +++ b/systemv/lp.c @@ -1,5 +1,5 @@ /* - * "$Id: lp.c,v 1.28 2001/02/06 23:40:10 mike Exp $" + * "$Id: lp.c,v 1.29 2001/03/09 14:26:54 mike Exp $" * * "lp" command for the Common UNIX Printing System (CUPS). * @@ -598,6 +598,9 @@ set_job_attrs(int job_id, /* I - Job ID */ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); + ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, + "requesting-user-name", NULL, cupsUser()); + cupsEncodeOptions(request, num_options, options); if ((response = cupsDoRequest(http, request, "/jobs")) != NULL) @@ -647,5 +650,5 @@ sighandler(int s) /* I - Signal number */ /* - * End of "$Id: lp.c,v 1.28 2001/02/06 23:40:10 mike Exp $". + * End of "$Id: lp.c,v 1.29 2001/03/09 14:26:54 mike Exp $". */ -- 2.47.2