vfs: Ensure we have a base fsp openat() for named streams
[samba.git] / source3 / modules / vfs_streams_xattr.c
index 48fc1cd134b2b52ec20260930dec5d3be485dedf..9f7dc0a2c505e9357a8b37eaec7d611ca63b49c6 100644 (file)
@@ -343,6 +343,8 @@ static int streams_xattr_openat(struct vfs_handle_struct *handle,
                                           mode);
        }
 
+       SMB_ASSERT(fsp_is_alternate_stream(fsp));
+
        /*
         * For now assert this, so the below SMB_VFS_SETXATTR() works.
         */