Univention Bugzilla – Attachment 10343 Details for
Bug 51196
cups-printers listener fails to create printer due to overquoting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch (text/plain), 1.06 KB, created by
Arvid Requate
on 2020-04-30 16:19:27 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2020-04-30 16:19:27 CEST
Size:
1.06 KB
patch
obsolete
>diff --git a/services/univention-printserver/cups-printers.py b/services/univention-printserver/cups-printers.py >index 8846c59d39..908c3bcbd2 100644 >--- a/services/univention-printserver/cups-printers.py >+++ b/services/univention-printserver/cups-printers.py >@@ -96,10 +96,10 @@ def _join_basedir_filename(basedir, filename): > > > def lpadmin(args): >- args = [pipes.quote(x) for x in args] >+ quoted_args = [pipes.quote(x) for x in args] > > # Show this info message by default >- ud.debug(ud.LISTENER, ud.WARN, "cups-printers: info: univention-lpadmin %s" % ' '.join(args)) >+ ud.debug(ud.LISTENER, ud.WARN, "cups-printers: info: univention-lpadmin %s" % ' '.join(quoted_args)) > > rc = listener.run('/usr/sbin/univention-lpadmin', ['univention-lpadmin'] + args, uid=0) > if rc != 0: >@@ -108,7 +108,7 @@ def lpadmin(args): > with open(filename, 'w+') as fd: > os.chmod(filename, 0o755) > fd.write('#!/bin/sh\n') >- fd.write('/usr/sbin/univention-lpadmin %s\n' % (' '.join(args),)) >+ fd.write('/usr/sbin/univention-lpadmin %s\n' % (' '.join(quoted_args),)) > > > def pkprinters(args):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51196
: 10343