]> git.neil.brown.name Git - history.git/commitdiff
Allow non-LFS sendfile to work on LFS files.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 18 Apr 2004 03:51:30 +0000 (20:51 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 18 Apr 2004 03:51:30 +0000 (20:51 -0700)
But obviously only if we're not passing in any offset pointer.

This is how 2.4.x worked, and vsftpd relies on it.

Bug reported by Chris < chris@scary.beasts.org>

fs/read_write.c

index b44fcbb94461528cc6c686d320793705686cc98b..a30ab9df41e2391abce52c3ebf08271eea308245 100644 (file)
@@ -635,7 +635,7 @@ asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t __user *offset, siz
                return ret;
        }
 
-       return do_sendfile(out_fd, in_fd, NULL, count, MAX_NON_LFS);
+       return do_sendfile(out_fd, in_fd, NULL, count, 0);
 }
 
 asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd, loff_t __user *offset, size_t count)