From 3c1e7cb2244172b12c6bb93598826466f7e1bf5b Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 6 Aug 2015 13:48:54 +0200 Subject: 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 Reviewed-by: Stefan Metzmacher (cherry picked from commit fe4909f1cab72f80715a996a63290462102aabc6) --- source4/torture/vfs/fruit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1