]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Simplify streams_xattr_get_ea_value_fsp()
authorVolker Lendecke <vl@samba.org>
Thu, 28 Aug 2025 12:51:22 +0000 (14:51 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 21 Oct 2025 17:33:29 +0000 (17:33 +0000)
We don't care about flags and names in streams_xattr

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_xattr.c

index 8f4a1020a9b67f264bf9a4ed50b9765010bba6af..fb6c36db3c2db4cdd99e73c2f9e4aa4f72ea088b 100644 (file)
@@ -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;