Skip to content
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

lpadmin -v doesn't convert /file to file:///file #4134

Closed
michaelrsweet opened this issue Jul 2, 2012 · 1 comment
Closed

lpadmin -v doesn't convert /file to file:///file #4134

michaelrsweet opened this issue Jul 2, 2012 · 1 comment
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.5.3
CUPS.org User: jpopelka

Hi,

lpadmin(8) states that:

-v "device-uri"
If device-uri is a filename it is automatically converted to the form file:///file/name.

but this has no longer been true since r9244 (fix for STR #3613).

You should either return the
if (device[0] == '/')
snprintf(uri, sizeof(uri), "file://%s", device);

or remove the note in lpadmin(8).

Jiri

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant