Commit f5e277c5 authored by Linus Torvalds's avatar Linus Torvalds

Allow non-LFS sendfile to work on LFS files.

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>
parent a9eb9eb7
...@@ -635,7 +635,7 @@ asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t __user *offset, siz ...@@ -635,7 +635,7 @@ asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t __user *offset, siz
return ret; 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) asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd, loff_t __user *offset, size_t count)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment