summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2015-08-06 13:48:54 +0200
committerStefan Metzmacher <metze@samba.org>2015-08-17 18:09:40 +0200
commit3c1e7cb2244172b12c6bb93598826466f7e1bf5b (patch)
tree9a8fd695227725f9d962c4a06f39f8638ede241b
parent047cbb35e2b289d46f6f82bab76658114adac51f (diff)
downloadsamba-3c1e7cb2244172b12c6bb93598826466f7e1bf5b.tar.gz
s4:torture:vfs_fruit: pass xattr name as arg to torture_setup_local_xattr()
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11278 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit fe4909f1cab72f80715a996a63290462102aabc6)
-rw-r--r--source4/torture/vfs/fruit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c
index 4de21b27da3..87102bed8df 100644
--- a/source4/torture/vfs/fruit.c
+++ b/source4/torture/vfs/fruit.c
@@ -1060,6 +1060,7 @@ static bool write_stream(struct smb2_tree *tree,
static bool torture_setup_local_xattr(struct torture_context *tctx,
const char *path_option,
const char *name,
+ const char *xattr,
const char *metadata,
size_t size)
{
@@ -1076,7 +1077,7 @@ static bool torture_setup_local_xattr(struct torture_context *tctx,
path = talloc_asprintf(tctx, "%s/%s", spath, name);
- result = setxattr(path, AFPINFO_EA_NETATALK, metadata, size, 0);
+ result = setxattr(path, xattr, metadata, size, 0);
if (result != 0) {
ret = false;
}
@@ -1195,6 +1196,7 @@ static bool test_read_atalk_metadata(struct torture_context *tctx,
ret = torture_setup_local_xattr(tctx, "localdir",
BASEDIR "/torture_read_metadata",
+ AFPINFO_EA_NETATALK,
metadata_xattr, sizeof(metadata_xattr));
if (ret == false) {
goto done;