[LOW] STR #4134: lpadmin -v doesn't convert /file to file:///file

Jiri Popelka <[email protected]>
Newsgroups gmane.comp.printing.cups.bugs
Message-ID <[email protected]>
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

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

Link: http://www.cups.org/str.php?L4134
Version: 1.5.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.