summaryrefslogtreecommitdiff
path: root/source3/wscript_build
diff options
context:
space:
mode:
authorBryan Mason <bmason@redhat.com>2019-09-25 18:49:56 -0700
committerAndreas Schneider <asn@cryptomilk.org>2019-10-16 10:55:04 +0000
commitf0abf62adcf4bda6dd7b36ce74695f8ac8ec79f6 (patch)
treec9e803811a17c0bc1ba5a58a8ea57e10d4d8b0a0 /source3/wscript_build
parent7259197bf716f8b81dea74beefe6ee3b1239f172 (diff)
downloadsamba-f0abf62adcf4bda6dd7b36ce74695f8ac8ec79f6.tar.gz
s3:tests: Add smbspool test for CUPS-like "sanitized" Device URI in argv[0]
Before calling a backend like smbspool, CUPS will set argv[0] to the "sanitized" Device URI (the Device URI with username/password information removed). These changes are intended to catch problems with smbspool that may be created by this behavior (like https://bugzilla.samba.org/show_bug.cgi?id=14128). source3/script/tests/smbspool_argv_wrapper.c: added to emulate CUPS-like behavior by setting argv[0] to the device URI before exec()ing smbspool. source3/script/tests/test_smbspool.sh: updated to use smbspool_argv_wrapper to test the CUPS-like behavior described above. Signed-off-by: Bryan Mason <bmason@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Oct 16 10:55:04 UTC 2019 on sn-devel-184
Diffstat (limited to 'source3/wscript_build')
-rw-r--r--source3/wscript_build4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/wscript_build b/source3/wscript_build
index 829636a77c5..94ea02ba61e 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -1151,6 +1151,10 @@ bld.SAMBA3_BINARY('smbspool_krb5_wrapper',
install_path='${LIBEXECDIR}/samba',
enabled=bld.CONFIG_SET('HAVE_CUPS'))
+bld.SAMBA3_BINARY('smbspool_argv_wrapper',
+ source='script/tests/smbspool_argv_wrapper.c',
+ install=False)
+
bld.SAMBA3_BINARY('locktest2',
source='torture/locktest2.c',
deps='''