mirror of
https://github.com/samba-team/samba.git
synced 2025-12-18 08:23:51 +03:00
31 lines
361 B
Bash
31 lines
361 B
Bash
#!/bin/sh
|
|
|
|
. $SCRIPTDIR/functions
|
|
|
|
cat >$CONFFILE<<EOF
|
|
[global]
|
|
include = $LIBDIR/common.conf
|
|
|
|
[test]
|
|
path = $PREFIX_ABS/tmp
|
|
read only = no
|
|
EOF
|
|
|
|
##
|
|
## Test code
|
|
##
|
|
|
|
/bin/rm -rf $PREFIX_ABS/tmp
|
|
mkdir $PREFIX_ABS/tmp
|
|
chmod 1777 $PREFIX_ABS/tmp
|
|
|
|
|
|
start_smbd || exit $?
|
|
|
|
smbtorture //localhost/test -U${USERNAME}%${PASSWORD} FDPASS
|
|
ret=$?
|
|
|
|
stop_smbd
|
|
|
|
exit $ret
|