]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Merge lpd fix from master branch
authorZdenek Dohnal <zdohnal@redhat.com>
Tue, 27 Jun 2023 06:24:00 +0000 (08:24 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Tue, 27 Jun 2023 06:24:00 +0000 (08:24 +0200)
CHANGES.md
backend/lpd.c

index 42839c697e69a2ec48fc2aaee7cb8b4f9d91b37b..877b292883a9a6900321743408010636521e26fc 100644 (file)
@@ -4,6 +4,8 @@ CHANGES - OpenPrinting CUPS 2.4.7 - TBA
 Changes in CUPS v2.4.7 (TBA)
 -----------------------------------
 
+- Fix delays in lpd backend (Issue #741)
+
 
 Changes in CUPS v2.4.6 (2023-06-22)
 -----------------------------------
index a7a44ab20fa28465945511fc20d917ff922c4432..425b8512ac0550eb698a92b5ae3fd517aedfb37b 100644 (file)
@@ -63,7 +63,7 @@ static int    abort_job = 0;          /* Non-zero if we get SIGTERM */
 
 #define RESERVE_NONE           0       /* Don't reserve a privileged port */
 #define RESERVE_RFC1179                1       /* Reserve port 721-731 */
-#define RESERVE_ANY            2       /* Reserve port 1-1023 */
+#define RESERVE_ANY            2       /* Reserve port 512-1023 */
 
 
 /*
@@ -775,7 +775,7 @@ lpd_queue(const char      *hostname,        /* I - Host to connect to */
 
       if (lport < 721 && reserve == RESERVE_RFC1179)
        lport = 731;
-      else if (lport < 1)
+      else if (lport < 512)
        lport = 1023;
 
 #ifdef HAVE_GETEUID