From: mike Date: Tue, 29 Jul 2003 12:53:01 +0000 (+0000) Subject: Mirror 1.1.x changes. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82ba0702bb21ddc28dba4ee57ab5dfbbbc6df086;p=thirdparty%2Fcups.git Mirror 1.1.x changes. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@3839 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/CHANGES-1.1.txt b/CHANGES-1.1.txt index 9884dde28a..8697d88570 100644 --- a/CHANGES-1.1.txt +++ b/CHANGES-1.1.txt @@ -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 diff --git a/backend/lpd.c b/backend/lpd.c index b443365a62..2295a18e8b 100644 --- a/backend/lpd.c +++ b/backend/lpd.c @@ -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 $". */