Repository navigation
cups-browsed: don't use name@host for IPP printers with DNS-SD naming - #78
Merged
Merged
Conversation
get_local_queue_name() only wants to fall back to name@host when DNS-SD service name based naming isn't used. the check for IPP printers tested the is_cups_queue pointer instead of its value, wich is always true, so the fallback was used for them anyway. with the default settings, a printer whose name is taken by a manual queue got a name@host queue instead of being ignored.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
get_local_queue_name()tests theis_cups_queuepointer in one place instead of what it points to, so the check for IPP printers is always true.with default settings, a discovered IPP printer "Office Printer" and a manual queue already called
Office_Printer:the comment right above says name@host is only for when DNS-SD naming isn't used, and the line above it already does
*is_cups_queuefor the remote CUPS case. a printer whose name is free still getsFree_Oneas before, and other naming modes aren't affected.this does change behavior, since those printers stop getting a name@host queue. that's what the comment describes, but tell me if people have come to rely on it.
tested with a small harness calling the function directly, before and after, without a live cupsd or avahi.