s3: modules: Fix *allocate* calls to follow POSIX error return convention.
[obnox/samba/samba-obnox.git] / source3 / modules / vfs_streams_xattr.c
index f0ab7321e077a57fc6884707f6d4314220a37de7..5c5a9a17fa6947c9d53585b8f5912952390edde4 100644 (file)
@@ -1103,11 +1103,12 @@ static int streams_xattr_fallocate(struct vfs_handle_struct *handle,
        }
 
        if (!streams_xattr_recheck(sio)) {
-               return errno;
+               return -1;
        }
 
        /* Let the pwrite code path handle it. */
-       return ENOSYS;
+       errno = ENOSYS;
+       return -1;
 }