]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror 1.1.x changes.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 29 Jul 2003 12:53:01 +0000 (12:53 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 29 Jul 2003 12:53:01 +0000 (12:53 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@3839 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.1.txt
backend/lpd.c

index 9884dde28a2f7e6a9a70b0a0e28db201a2af095a..8697d88570293d6bccfde0b22f5f922cfc7fa0dd 100644 (file)
@@ -3,6 +3,9 @@ CHANGES-1.1.txt
 
 CHANGES IN CUPS V1.1.20rc1
 
+       - The LPD backend did not set the banner class when the
+         "banner=yes" option was specified in the device URI
+         (STR #209)
        - The imagetoraster filter did not support all of the
          page device attributes (STR #208)
        - The pdftops filter incorrectly auto-rotated pages when
index b443365a6217ad8f99bfde7bb34d25b82553463f..2295a18e8b1961cc4338af1bf79e0bfd56ea98cc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpd.c,v 1.28.2.22 2003/04/10 14:13:48 mike Exp $"
+ * "$Id: lpd.c,v 1.28.2.23 2003/07/29 12:53:01 mike Exp $"
  *
  *   Line Printer Daemon backend for the Common UNIX Printing System (CUPS).
  *
@@ -683,12 +683,14 @@ lpd_queue(char *hostname,         /* I - Host to connect to */
     gethostname(localhost, sizeof(localhost));
     localhost[31] = '\0'; /* RFC 1179, Section 7.2 - host name < 32 chars */
 
-    snprintf(control, sizeof(control), "H%s\nP%s\nJ%s\n", localhost, user, title);
+    snprintf(control, sizeof(control), "H%s\nP%s\nJ%s\n", localhost, user,
+             title);
     cptr = control + strlen(control);
 
     if (banner)
     {
-      snprintf(cptr, sizeof(control) - (cptr - control), "L%s\n", user);
+      snprintf(cptr, sizeof(control) - (cptr - control), "L%s\nC%s\n", user,
+               localhost);
       cptr   += strlen(cptr);
     }
 
@@ -1020,5 +1022,5 @@ sigterm_handler(int sig)          /* I - Signal */
 
 
 /*
- * End of "$Id: lpd.c,v 1.28.2.22 2003/04/10 14:13:48 mike Exp $".
+ * End of "$Id: lpd.c,v 1.28.2.23 2003/07/29 12:53:01 mike Exp $".
  */