[cups-devel] [UNKN] STR #4578: lpadmin silently ignores -o when creating .ppd

Yuexiao Guo noreply at cups.org
Thu Feb 12 10:57:05 PST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

It appears that when using lpadmin to generate a .ppd that was not there
before with -m, options provided with -o are not applied. When using
lpadmin to modify a preexisting .ppd, options provided with -o are applied.

There is no output to indicate that this is what is occurring, and nothing
in the manpage for lpadmin that would clue users in.

We noticed this on an hour-long bughunt through our mass-deployed printer
setup scripts to identify what was causing a printer to default to using
the wrong paper size. We would run the script (which first removed all the
.ppds), observe that the generated .ppd was wrong, then run the same
lpadmin command on the command line (which was now modifying the .ppd
created by the earlier run in the script), then observe that the generated
.ppd was now correct. 

For reference, the command used was:

/usr/sbin/lpadmin -p [name] -E -m MCS/[name].ppd -D "[description]" -L
"[location]" -v "[address]" -o PageSize=Letter -o HPOption_Duplexer=True -o
printer-is-shared=true -u allow:root,remroot

Where MCS/[name].ppd had the correct PageSize setting, different from the
.ppd generated in /etc/cups/ppd/ by the above command. Running the same
command again corrected the file.

Link: https://www.cups.org/str.php?L4578
Version: 2.0-current
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJU3PeBAAoJENujp6sI12Ij0GQP/3eS+PE69QAUC77/Ocjy2BNj
2Cp6U9ZYeHudAhr/bI+XJqNTR5PF98qr4RfCv8DZpWHEKcKEe1K0Mv2SCPOeqyNp
rZ3ktdtDYcpdTA5TklEqI2bLoxOkUR9EC+NWLpGjtRl1nZt8TQhWMNGBKQYaVdo1
rStNnTnIhWu/ONLRI7oKKnfmii6OucYB0CCS9gDjtOcd4r5G/ReP2uug410gN6UV
z8Dveq4FJSbNcdHsH2SQ2XyASvULwNi4UsVPCTtzsS0Ar8zPuBCiFu/Px7vG4mtG
Y9zee8F1wmdLB9oqjcTqph0VLBScXmoEQLO1QrQJQtzCtGd6rnSRe1kif2Pcm2H1
0eUEJ52G6WtXO5O9pi3E00aBcGJ7kd+ZPbnOK3QhtlfTZUfiz4AyNJRizvJPRd9S
PJKr9zCtRF5ktetDJmn1GouFJpO/SN5EiB+LEaWVEyt6j1XLNXOs+nwbUxKON02E
p9ZZLxEUFl89uuIZsz1A3ffZbr0KvRiWT60ZiMnZ/aVicDou7WbtOV8Xa3g3nui0
rpKIP5SMQFNt0i+ja8l/GTRLDcAdksj5FIIFlnsBzVOuREI6CSbqkdpl1w7D9Y/V
7xjt76At1p6QAO92LgnDEmgGLDSTWRrbdPSX63Xt2VfduQO0xHOZ0Jtv9AgVzgZD
ttXuGuY3S6DsS4ZyJY+O
=QuQc
-----END PGP SIGNATURE-----




More information about the cups-devel mailing list