]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: fix if expression that checks when to call vfs_fill_sparse()
authorRalph Boehme <slow@samba.org>
Thu, 2 Apr 2020 08:27:21 +0000 (10:27 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 3 Apr 2020 19:05:43 +0000 (19:05 +0000)
Noone complained so far, skip bugreport.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/fileio.c

index 31d5b7510b742f9d83f8249ca2c695bb11e64650..272262d78cd41861ba7cfa8465d0fa4d41f17ec0 100644 (file)
@@ -71,8 +71,8 @@ static ssize_t real_write_file(struct smb_request *req,
        ssize_t ret;
 
        fsp->fh->pos = pos;
-       if (pos && lp_strict_allocate(SNUM(fsp->conn) &&
-                       !fsp->is_sparse)) {
+       if (pos && lp_strict_allocate(SNUM(fsp->conn)) &&
+                       !fsp->is_sparse) {
                if (vfs_fill_sparse(fsp, pos) == -1) {
                        return -1;
                }