diff options
author | Eloy Paris <peloy@samba.org> | 2003-06-01 07:12:51 +0000 |
---|---|---|
committer | Eloy Paris <peloy@samba.org> | 2003-06-01 07:12:51 +0000 |
commit | 57be8ec8ac6158a37bfe78e97e8f05cd3a3bf54d (patch) | |
tree | 38a531bc4190daee2f461a6a51f1f5e6abe835cf /packaging/Debian/debian/patches/loadparm.patch | |
parent | f6b7bb44a61583a4743767d7ea5e3de5127e0176 (diff) | |
download | samba-57be8ec8ac6158a37bfe78e97e8f05cd3a3bf54d.tar.gz samba-57be8ec8ac6158a37bfe78e97e8f05cd3a3bf54d.tar.bz2 samba-57be8ec8ac6158a37bfe78e97e8f05cd3a3bf54d.zip |
Bringing packaging/Debian/* to a more recent state.
(This used to be commit cd7494a19608f2b4a63b9c654dd8e0a0fc587c39)
Diffstat (limited to 'packaging/Debian/debian/patches/loadparm.patch')
-rw-r--r-- | packaging/Debian/debian/patches/loadparm.patch | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/packaging/Debian/debian/patches/loadparm.patch b/packaging/Debian/debian/patches/loadparm.patch deleted file mode 100644 index d7880a2514..0000000000 --- a/packaging/Debian/debian/patches/loadparm.patch +++ /dev/null @@ -1,78 +0,0 @@ ---- samba-2.2.2.cvs20020201/source/param/loadparm.c.orig Fri Feb 1 17:03:50 2002 -+++ samba-2.2.2.cvs20020201/source/param/loadparm.c Fri Feb 1 18:45:41 2002 -@@ -1085,26 +1085,26 @@ - case PRINT_AIX: - case PRINT_LPRNT: - case PRINT_LPROS2: -- string_set(&sDefault.szLpqcommand, "lpq -P%p"); -- string_set(&sDefault.szLprmcommand, "lprm -P%p %j"); -+ string_set(&sDefault.szLpqcommand, "lpq -P'%p'"); -+ string_set(&sDefault.szLprmcommand, "lprm -P'%p' %j"); - string_set(&sDefault.szPrintcommand, -- "lpr -r -P%p %s"); -+ "lpr -r -P'%p' %s"); - break; - - case PRINT_LPRNG: - case PRINT_PLP: -- string_set(&sDefault.szLpqcommand, "lpq -P%p"); -- string_set(&sDefault.szLprmcommand, "lprm -P%p %j"); -+ string_set(&sDefault.szLpqcommand, "lpq -P'%p'"); -+ string_set(&sDefault.szLprmcommand, "lprm -P'%p' %j"); - string_set(&sDefault.szPrintcommand, -- "lpr -r -P%p %s"); -+ "lpr -r -P'%p' %s"); - string_set(&sDefault.szQueuepausecommand, -- "lpc stop %p"); -+ "lpc stop '%p'"); - string_set(&sDefault.szQueueresumecommand, -- "lpc start %p"); -+ "lpc start '%p'"); - string_set(&sDefault.szLppausecommand, -- "lpc hold %p %j"); -+ "lpc hold '%p' %j"); - string_set(&sDefault.szLpresumecommand, -- "lpc release %p %j"); -+ "lpc release '%p' %j"); - break; - - case PRINT_CUPS: -@@ -1120,19 +1120,19 @@ - string_set(&Globals.szPrintcapname, "cups"); - #else - string_set(&sDefault.szLpqcommand, -- "/usr/bin/lpstat -o %p"); -+ "/usr/bin/lpstat -o '%p'"); - string_set(&sDefault.szLprmcommand, -- "/usr/bin/cancel %p-%j"); -+ "/usr/bin/cancel '%p-%j'"); - string_set(&sDefault.szPrintcommand, -- "/usr/bin/lp -d %p %s; rm %s"); -+ "/usr/bin/lp -d '%p' %s; rm %s"); - string_set(&sDefault.szLppausecommand, -- "lp -i %p-%j -H hold"); -+ "lp -i '%p-%j' -H hold"); - string_set(&sDefault.szLpresumecommand, -- "lp -i %p-%j -H resume"); -+ "lp -i '%p-%j' -H resume"); - string_set(&sDefault.szQueuepausecommand, -- "/usr/bin/disable %p"); -+ "/usr/bin/disable '%p'"); - string_set(&sDefault.szQueueresumecommand, -- "/usr/bin/enable %p"); -+ "/usr/bin/enable '%p'"); - string_set(&Globals.szPrintcapname, "lpstat"); - #endif /* HAVE_CUPS */ - break; -@@ -1437,7 +1437,10 @@ - else - StrnCpy(ret, s, len); - -- trim_string(ret, "\"", "\""); -+ if (trim_string(ret, "\"", "\"")) { -+ if (strchr(ret,'"') != NULL) -+ StrnCpy(ret, s, len); -+ } - - standard_sub_basic(ret); - return (ret); |