summaryrefslogtreecommitdiff
path: root/source3/script/tests/printing/modprinter.pl
AgeCommit message (Collapse)AuthorFilesLines
2024-07-23s3:tests: let modprinter.pl use $TMPDIRStefan Metzmacher1-1/+5
We should avoid using /tmp in selftest Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 23 13:53:13 UTC 2024 on atb-devel-224
2019-12-19s3:script: Try to fix a Perl warningAndreas Schneider1-1/+1
Scalar value @ENV{"BASH_ENV"} better written as $ENV{"BASH_ENV"} at /tmp/samba-testbase/b23/samba-ad-dc-1/source3/script/tests/printing/modprinter.pl line 134. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-03-21s3:script: Fix running cp in modprinter.plAndreas Schneider1-0/+2
We need to unset BASH_ENV or we get: Insecure $ENV{BASH_ENV} while running setgid Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Mar 21 16:41:33 UTC 2019 on sn-devel-144
2017-08-24s3:script: Untaint user supplied data in modprinter.plAndreas Schneider1-3/+12
spoolss_SetPrinter fails because of the error produced by modprinter.pl. Perl error: Insecure dependency in open while running setgid at modprinter.pl line 76. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12950 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2010-02-18s3-selftest: fix return code for modprinter.pl -a.Günther Deschner1-1/+2
Background is: the SetPrinter level 2 calls "addprinter command" an fails if a share already existed (and the addprinter command returned a non-0 return code). Removing the non-0 return code is fine, as in AddPrinter{Ex}, we have checks to see if a share already exists before calling out the addprinter command. Maybe one day, we need to have a "changeprinter command"... Guenther
2010-02-18s3-selftest: include addprinter/deleteprinter command.Günther Deschner1-0/+128
Guenther