summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2020-08-25 21:34:00 +0200
committerDidier Raboud <odyx@debian.org>2020-11-13 17:04:55 +0100
commit440c99c34649f12004ec421fdb6e70261b586f1c (patch)
treeaf6c9e2c8261895f43f8b7bbb2dfa883552445a1
parent59b391704412eaf9f7083c78e7bf361effe42928 (diff)
Make lpoptions list a printer's options correctly also when CUPS is running on an alternative port
-rw-r--r--systemv/lpoptions.c3
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());