]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Fix streams_xattr_openat
authorVolker Lendecke <vl@samba.org>
Wed, 9 Oct 2024 10:00:28 +0000 (12:00 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 12:09:35 +0000 (12:09 +0000)
This emulates openat, and trying to open a non-existing file should
result in ENOENT and not ENOATTR

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

index f422fae0a1f6a2403d83f5f1215de3fd4349af60..48c1e05da0f8e1ff9d2183cea28b09c9e5f5b68e 100644 (file)
@@ -373,7 +373,7 @@ static int streams_xattr_openat(struct vfs_handle_struct *handle,
                }
 
                if (!(how->flags & O_CREAT)) {
-                       errno = ENOATTR;
+                       errno = ENOENT;
                        goto fail;
                }