diff options
author | Till Kamppeter <till.kamppeter@gmail.com> | 2020-08-25 21:34:00 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2020-10-29 21:09:17 +0100 |
commit | 2c1f8c0078c44139de347344f705dbf25a2a8a98 (patch) | |
tree | ea284b229cf5aa48341bcce7797f93ca3666b8b5 | |
parent | 0b5daf07034b461c01d9a05beea350dca446c4aa (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()); |