posix_fallocate() returns an errno, not -1 on error.
authorJeremy Allison <jra@samba.org>
Fri, 3 Dec 2010 01:46:30 +0000 (17:46 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 3 Dec 2010 01:55:05 +0000 (02:55 +0100)
source3/modules/vfs_streams_xattr.c

index 8870c6e47101dc8b186ede4f080e150dd95d4832..819f33d36eb5eec66b6cdb714f8c3c829096984a 100644 (file)
@@ -1040,7 +1040,7 @@ static int streams_xattr_posix_fallocate(struct vfs_handle_struct *handle,
        }
 
        if (!streams_xattr_recheck(sio)) {
-               return -1;
+               return errno;
        }
 
        /* Let the pwrite code path handle it. */