diff options
author | Volker Lendecke <vl@samba.org> | 2012-02-02 20:32:07 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2012-02-02 22:10:48 +0100 |
commit | fad9727f256588993b15c15cf3c24fe18b885da9 (patch) | |
tree | 65934477f1fece482fb3b588c9cde3582ee4b5dd /source3/script | |
parent | da0a7b2fcc967d4d0f6cab3f1a93c875da9e5498 (diff) | |
download | samba-fad9727f256588993b15c15cf3c24fe18b885da9.tar.gz samba-fad9727f256588993b15c15cf3c24fe18b885da9.tar.xz samba-fad9727f256588993b15c15cf3c24fe18b885da9.zip |
s3: Test for faulty xattr_tdb listxattr
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Feb 2 22:10:49 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/script')
-rwxr-xr-x | source3/script/tests/xattr-tdb-1/run.sh | 7 | ||||
-rw-r--r-- | source3/script/tests/xattr-tdb-1/smb.conf | 5 | ||||
-rw-r--r-- | source3/script/tests/xattr-tdb-1/vfstest.cmd | 5 |
3 files changed, 17 insertions, 0 deletions
diff --git a/source3/script/tests/xattr-tdb-1/run.sh b/source3/script/tests/xattr-tdb-1/run.sh new file mode 100755 index 0000000000..2a1b6afd63 --- /dev/null +++ b/source3/script/tests/xattr-tdb-1/run.sh @@ -0,0 +1,7 @@ +#!/bin/sh +if ../../../bin/vfstest -s smb.conf -f vfstest.cmd | + grep "NT_STATUS_ACCESS_DENIED" > /dev/null 2>&1 +then + exit 1 +fi +exit 0 diff --git a/source3/script/tests/xattr-tdb-1/smb.conf b/source3/script/tests/xattr-tdb-1/smb.conf new file mode 100644 index 0000000000..259b630c5e --- /dev/null +++ b/source3/script/tests/xattr-tdb-1/smb.conf @@ -0,0 +1,5 @@ +[tmp] +# "path" is ignored by vfstest, it's always set to $(pwd) +path = /tmp +writable = yes +vfs objects = xattr_tdb diff --git a/source3/script/tests/xattr-tdb-1/vfstest.cmd b/source3/script/tests/xattr-tdb-1/vfstest.cmd new file mode 100644 index 0000000000..585147d61a --- /dev/null +++ b/source3/script/tests/xattr-tdb-1/vfstest.cmd @@ -0,0 +1,5 @@ +connect +open x RC 0700 +setxattr x y z +listxattr x +unlink x |