mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3:tests: Reformat test_shareenum.sh
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
6395813ca0
commit
a4ff172fee
@ -3,10 +3,10 @@
|
||||
# this tests share enumeration with "access based share enum"
|
||||
|
||||
if [ $# -lt 4 ]; then
|
||||
cat <<EOF
|
||||
cat <<EOF
|
||||
Usage: $0 SERVER USERNAME PASSWORD RPCCLIENT
|
||||
EOF
|
||||
exit 1;
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SERVER="$1"
|
||||
@ -15,13 +15,14 @@ PASSWORD="$3"
|
||||
RPCCLIENT="$4"
|
||||
RPCCLIENT="$VALGRIND ${RPCCLIENT}"
|
||||
|
||||
incdir=`dirname $0`/../../../testprogs/blackbox
|
||||
incdir=$(dirname $0)/../../../testprogs/blackbox
|
||||
. $incdir/subunit.sh
|
||||
|
||||
user_see_share() {
|
||||
local user=$1
|
||||
local share=$2
|
||||
$RPCCLIENT //$SERVER -U$user%$PASSWORD -c "netshareenumall" | grep $share > /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
|
||||
|
Loading…
x
Reference in New Issue
Block a user