From: Ralph Boehme Date: Fri, 13 Oct 2017 12:32:58 +0000 (+0200) Subject: selftest: prevent interpretation of escape sequences in test_give_owner.sh X-Git-Tag: tevent-0.9.34~209 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7abf0acef48cb585fa8e5666fd4c27692b9c8ae3;p=thirdparty%2Fsamba.git 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 Reviewed-by: Volker Lendecke Reviewed-by: Andreas Schneider Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Sat Oct 14 06:02:50 CEST 2017 on sn-devel-144 --- 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)