'lp -H immediate' should override server side job-hold-until-default #3013

Closed
michaelrsweet opened this Issue Nov 17, 2008 · 2 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Nov 17, 2008

Version: 1.3-current
CUPS.org User: opher

Hello,
The lp documentation

http://www.cups.org/documentation.php/doc-1.3/man-lp.html

indicates that

-H resume
   Specifies when the job should be printed. A value of immediate will print the file immediately, a value of hold will hold the job indefinitely, and ...

It was my understanding, from this wording, that '-H immediate' should also override a server-side job-hold-until-default.

Regards,
Opher.

Collaborator

michaelrsweet commented Nov 18, 2008

CUPS.org User: mike

Fixed in Subversion repository.

Collaborator

michaelrsweet commented Nov 18, 2008

"str3013.patch":

Index: systemv/lp.c

--- systemv/lp.c (revision 8140)
+++ systemv/lp.c (working copy)
@@ -418,8 +418,12 @@
num_options = cupsAddOption("job-hold-until", "no-hold",
num_options, &options);
else if (!strcmp(val, "immediate"))

  •   {
    
  •          num_options = cupsAddOption("job-hold-until", "no-hold",
    
  •                                 num_options, &options);
           num_options = cupsAddOption("job-priority", "100",
                                  num_options, &options);
    
  •   }
    else if (!strcmp(val, "restart"))
    {
      if (job_id < 1)
    

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment