1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From: Till Kamppeter <till.kamppeter@gmail.com>
Date: Tue, 25 Aug 2020 21:34:00 +0200
Subject: Make lpoptions list a printer's options correctly also when CUPS is
running on an alternative port
---
systemv/lpoptions.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/systemv/lpoptions.c b/systemv/lpoptions.c
index 08746c0..c55f281 100644
--- a/systemv/lpoptions.c
+++ b/systemv/lpoptions.c
@@ -480,14 +480,13 @@ static void
list_options(cups_dest_t *dest) /* I - Destination to list */
{
http_t *http; /* Connection to destination */
- char resource[1024]; /* Resource path */
int i; /* Looping var */
const char *filename; /* PPD filename */
ppd_file_t *ppd; /* PPD data */
ppd_group_t *group; /* Current group */
- if ((http = cupsConnectDest(dest, CUPS_DEST_FLAGS_NONE, 30000, NULL, resource, sizeof(resource), NULL, NULL)) == NULL)
+ if ((http = _cupsConnect()) == NULL)
{
_cupsLangPrintf(stderr, _("lpoptions: Unable to get PPD file for %s: %s"),
dest->name, cupsLastErrorString());
|