Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
vikrantmalik051 committed Mar 20, 2020
1 parent b88f847 commit 634dd53
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/cups-browsed.c
Original file line number Diff line number Diff line change
Expand Up @@ -10427,16 +10427,17 @@ found_cups_printer (const char *remote_host, const char *uri,
(printer->domain == NULL || printer->domain[0] == '\0' ||
printer->type == NULL || printer->type[0] == '\0')) {
printer->is_legacy = 1;
if (NewBrowsePollQueuesShared){
printer->num_options = cupsAddOption("printer-to-be-shared", "true", printer->num_options, &(printer->options));
}

if (printer->status != STATUS_TO_BE_CREATED) {
printer->timeout = time(NULL) + BrowseTimeout;
debug_printf("starting BrowseTimeout timer for %s (%ds)\n",
printer->queue_name, BrowseTimeout);
}
}

if (printer && NewBrowsePollQueuesShared)
if (HAVE_CUPS_1_6 || (!HAVE_CUPS_1_6 && !printer->is_legacy))
printer->num_options = cupsAddOption("printer-to-be-shared", "true", printer->num_options, &(printer->options));
}

gboolean
Expand Down

0 comments on commit 634dd53

Please sign in to comment.