From: Volker Lendecke Date: Wed, 9 Oct 2024 10:00:28 +0000 (+0200) Subject: vfs: Fix streams_xattr_openat X-Git-Tag: tdb-1.4.13~542 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45f50eee06d36830bd10adc959ddb47b3ccb56ed;p=thirdparty%2Fsamba.git vfs: Fix streams_xattr_openat This emulates openat, and trying to open a non-existing file should result in ENOENT and not ENOATTR 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 f422fae0a1f..48c1e05da0f 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -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; }