Public bug reported:

Steps to reproduce the problem :

On the cups server, add a printer with lpadmin (ppd has to be generated
first with foomatic) :


foomatic-ppdfile cat "foomatic-ppdfile:Samsung-ML-1750-gdi.ppd" > 
/tmp/random.ppd

lpadmin -p anyprinter -v socket://1.2.3.4 -P /tmp/random.ppd -o printer-
error-policy="retry-job" -L anywhere -D "any comment"

result is correct : 
file /etc/cups/printers.conf
/etc/cups/printers.conf: ASCII text

lpadmin -p anyprinter -v socket://1.2.3.4 -P /tmp/random.ppd -o printer-
error-policy="retry-job" -L anywhere -D "any comment with #"

the printer.conf file is now corrupted
file /etc/cups/printers.conf
/etc/cups/printers.conf: data

Cups should not corrupt the file in case '#' is used in the description,
or it should validate the description and refuse to add the printer.

** Affects: cups (Ubuntu)
     Importance: Medium
         Status: Triaged

-- 
printers.conf corruption if printer description contains the character '#'
https://bugs.launchpad.net/bugs/277136
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to