From: Zdenek Dohnal Date: Tue, 27 Jun 2023 06:24:00 +0000 (+0200) Subject: Merge lpd fix from master branch X-Git-Tag: v2.4.7~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed6697a933c18ffcf9bc7862633509552649e41e;p=thirdparty%2Fcups.git Merge lpd fix from master branch --- diff --git a/CHANGES.md b/CHANGES.md index 42839c697e..877b292883 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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) ----------------------------------- diff --git a/backend/lpd.c b/backend/lpd.c index a7a44ab20f..425b8512ac 100644 --- a/backend/lpd.c +++ b/backend/lpd.c @@ -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