tests/fake_snap: sanitize paths
authorDavid Disseldorp via samba-technical <samba-technical@lists.samba.org>
Sat, 26 Aug 2017 21:40:37 +0000 (23:40 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 29 Aug 2017 02:54:50 +0000 (04:54 +0200)
commitf9d4158f0b002b482df0a919d4cb337cce81f9f8
treec80a5c4fede61a503198d7bbd44d8341a9b25d32
parent7b58c8f54499f01778bcbfc2ad21521ceed2dd57
tests/fake_snap: sanitize paths

Ensure fake_snap.pl can be run in taint mode (-T), by sanitizing paths
and the PATH env. This fixes the following samba3.rpc.fsrvp selftest
failures:
Insecure dependency in mkdir while running setgid at (eval 2) line 4.
snap create failed: NT_STATUS_UNSUCCESSFUL
snap create failed for shadow copy of /home/ddiss/isms/samba/st/nt4_dc/share

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12988

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Aug 29 04:54:51 CEST 2017 on sn-devel-144
source3/script/tests/fake_snap.pl