summaryrefslogtreecommitdiff
path: root/source3/script/tests/fake_snap.pl
AgeCommit message (Collapse)AuthorFilesLines
2019-03-21s3:script: Fix running rsync in fake_snap.plAndreas Schneider1-0/+2
We need to unset BASH_ENV or we get: Insecure $ENV{BASH_ENV} while running setgid This probably only happens on recent perl versions. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2017-08-29tests/fake_snap: sanitize pathsDavid Disseldorp via samba-technical1-3/+16
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
2013-12-05test: add fake_snap.pl for snapshot simulationDavid Disseldorp1-0/+70
The script simulates snapshots by simply copying file data from the base path to a snapshot path located under .snapshots/@GMT-%Y.%m.%d-%H.%M.%S/ Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>