Line | |
---|
1 | . basicsmb.fns
|
---|
2 |
|
---|
3 | test_listfilesguestshare() {
|
---|
4 | remote_name=$1
|
---|
5 | echo $prefix/bin/smbclient //$remote_name/guest_share -n buildclient -U$whoami% -c 'ls'
|
---|
6 | $prefix/bin/smbclient //$remote_name/guest_share -n buildclient -U$whoami% -c 'ls'
|
---|
7 | status=$?
|
---|
8 | if [ $status = 0 ]; then
|
---|
9 | echo "smbd listed files correctly (guest share)"
|
---|
10 | else
|
---|
11 | echo "listing files on a guest share failed with status $status"
|
---|
12 | return 1
|
---|
13 | fi
|
---|
14 | return 0
|
---|
15 | }
|
---|
16 |
|
---|
17 | security=SHARE
|
---|
18 | ( test_smb_conf_setup ) || exit 1
|
---|
19 |
|
---|
20 | ( test_listfilesguestshare $security ) || exit 1
|
---|
Note:
See
TracBrowser
for help on using the repository browser.