]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror changes in 1.1 branch.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 9 Jan 2002 17:04:15 +0000 (17:04 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 9 Jan 2002 17:04:15 +0000 (17:04 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@2023 7a7537e8-13f0-0310-91df-b6672ffda945

scheduler/ipp.c

index dd2ec08c6431fb10d08c4b7927483b4482430b33..bf8c9c2f88bb73806959ad0f968cc5f771bca535 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ipp.c,v 1.127.2.4 2002/01/02 18:05:02 mike Exp $"
+ * "$Id: ipp.c,v 1.127.2.5 2002/01/09 17:04:15 mike Exp $"
  *
  *   IPP routines for the Common UNIX Printing System (CUPS) scheduler.
  *
@@ -2333,9 +2333,12 @@ create_job(client_t        *con, /* I - Client connection */
     * See if we need to add the starting sheet...
     */
 
-    kbytes = copy_banner(con, job, attr->values[0].string.text);
+    if (!(printer->type & CUPS_PRINTER_REMOTE))
+    {
+      kbytes = copy_banner(con, job, attr->values[0].string.text);
 
-    UpdateQuota(printer, job->username, 0, kbytes);
+      UpdateQuota(printer, job->username, 0, kbytes);
+    }
   }
   else if ((attr = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_ZERO)) != NULL)
     job->sheets = attr;
@@ -4147,9 +4150,12 @@ print_job(client_t        *con,          /* I - Client connection */
     * Add the starting sheet...
     */
 
-    kbytes = copy_banner(con, job, attr->values[0].string.text);
+    if (!(printer->type & CUPS_PRINTER_REMOTE))
+    {
+      kbytes = copy_banner(con, job, attr->values[0].string.text);
 
-    UpdateQuota(printer, job->username, 0, kbytes);
+      UpdateQuota(printer, job->username, 0, kbytes);
+    }
   }
   else if ((attr = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_ZERO)) != NULL)
     job->sheets = attr;
@@ -5665,5 +5671,5 @@ validate_user(client_t   *con,            /* I - Client connection */
 
 
 /*
- * End of "$Id: ipp.c,v 1.127.2.4 2002/01/02 18:05:02 mike Exp $".
+ * End of "$Id: ipp.c,v 1.127.2.5 2002/01/09 17:04:15 mike Exp $".
  */