-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
~/.cups/client.conf SeverName is never read #4528
Labels
Milestone
Comments
CUPS.org User: mike Fixed in Subversion repository. |
"client.conf": ServerName black.h.seblu.net |
This was referenced Mar 17, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 2.0.1
CUPS.org User: seblu
The attached client.conf only works when puts in CUPS_SERVERROOT (/etc/cups in my case).
That's not an override issue, because removing /etc/cups/client.conf doesn't help. Using environment variables works as expected.
I dug into the source code and my understanding is that the first call of cups_read_client_conf() in _cupsSetDefaults() (it reads /etc/cups/client.conf) set cg->server to "localhost" if this file doesn't set ServerName directive.
As a consequence, when cups_read_client_conf() is called the second time to read ~/.cups/client.conf, it ignores ServerName directive.
A solution would be to remove (!cg->server[0] || !cg->ipp_port) in cups_read_client_conf(). That's also have the side effect to let user override global default ServerName. Which is common behavior of $HOME dotfiles.
I would propose a git patch but I was unable to clone the git repository; I got a 403.
The text was updated successfully, but these errors were encountered: