From: Volker Lendecke Date: Thu, 28 Aug 2025 12:51:22 +0000 (+0200) Subject: vfs: Simplify streams_xattr_get_ea_value_fsp() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d10a8845cd41625c6ea326610d45fd93f6401c2;p=thirdparty%2Fsamba.git vfs: Simplify streams_xattr_get_ea_value_fsp() We don't care about flags and names in streams_xattr Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 8f4a1020a9b..fb6c36db3c2 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -46,8 +46,6 @@ struct stream_io { }; struct streams_xattr_ea { - uint8_t flags; - char *name; DATA_BLOB value; }; @@ -93,16 +91,6 @@ again: DBG_DEBUG("EA %s is of length %zd\n", ea_name, sizeret); dump_data(10, (uint8_t *)val, sizeret); - pea->flags = 0; - if (strnequal(ea_name, "user.", 5)) { - pea->name = talloc_strdup(mem_ctx, &ea_name[5]); - } else { - pea->name = talloc_strdup(mem_ctx, ea_name); - } - if (pea->name == NULL) { - TALLOC_FREE(val); - return ENOMEM; - } pea->value.data = (unsigned char *)val; pea->value.length = (size_t)sizeret; return 0;