diff options
author | Ralph Boehme <slow@samba.org> | 2017-10-13 14:32:58 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2017-10-14 06:02:50 +0200 |
commit | 7abf0acef48cb585fa8e5666fd4c27692b9c8ae3 (patch) | |
tree | 08c496afcbe75915a3cf69370247b1ddd75e775a /source3/script | |
parent | 5f52a0fbe8c9f52c6fed206fd5cd47bd0de867a1 (diff) | |
download | samba-7abf0acef48cb585fa8e5666fd4c27692b9c8ae3.tar.gz |
selftest: prevent interpretation of escape sequences in test_give_owner.sh
Bug: https://bugzilla.samba.org/show_bug.cgi?id=7933
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Oct 14 06:02:50 CEST 2017 on sn-devel-144
Diffstat (limited to 'source3/script')
-rwxr-xr-x | source3/script/tests/test_give_owner.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/script/tests/test_give_owner.sh b/source3/script/tests/test_give_owner.sh index c8f437ebd8b..7ee37341b42 100755 --- a/source3/script/tests/test_give_owner.sh +++ b/source3/script/tests/test_give_owner.sh @@ -72,7 +72,7 @@ add_ace() { local fname=$2 local ace=$3 - local_ace=$(echo $ace | sed 's|\\|/|') + local_ace=$(printf '%s' "$ace" | sed 's|\\|/|') # avoid duplicate out=$($SMBCACLS //$SERVER/$share $fname -U $USERNAME%$PASSWORD) |