From: Andreas Schneider Date: Fri, 22 Apr 2022 13:34:10 +0000 (+0200) Subject: s3:tests: Reformat test_shareenum.sh X-Git-Tag: tevent-0.13.0~444 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4ff172feecf33c16b9360aeaefc7b801371cab3;p=thirdparty%2Fsamba.git s3:tests: Reformat test_shareenum.sh shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- diff --git a/source3/script/tests/test_shareenum.sh b/source3/script/tests/test_shareenum.sh index 3904b519d54..0334243edc6 100755 --- a/source3/script/tests/test_shareenum.sh +++ b/source3/script/tests/test_shareenum.sh @@ -3,10 +3,10 @@ # this tests share enumeration with "access based share enum" if [ $# -lt 4 ]; then -cat < /dev/null 2>&1 +user_see_share() +{ + local user=$1 + local share=$2 + $RPCCLIENT //$SERVER -U$user%$PASSWORD -c "netshareenumall" | grep $share >/dev/null 2>&1 } testit "$USERNAME sees tmp" user_see_share $USERNAME tmp