diff options
author | Till Kamppeter <till.kamppeter@gmail.com> | 2020-08-25 21:34:00 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2020-11-05 08:54:06 +0100 |
commit | 4ce59a657c867d36f7434b2548917be3953670a9 (patch) | |
tree | e352b3cd1805baf8eacf46ec0cd1b3692973ad8d | |
parent | 86f735c7322fa25d3823cb92b8cc4c398a174517 (diff) |
Make lpoptions list a printer's options correctly also when CUPS is running on an alternative port
-rw-r--r-- | systemv/lpoptions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/systemv/lpoptions.c b/systemv/lpoptions.c index 08746c000..c55f28170 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()); |