| commit | 586ce098a23b6ab7383df853a84ae3d48dc889aa | [log] [tgz] |
|---|---|---|
| author | Al Viro <viro@zeniv.linux.org.uk> | Sun Mar 13 01:50:58 2011 -0500 |
| committer | Al Viro <viro@zeniv.linux.org.uk> | Sun Mar 13 19:21:26 2011 -0400 |
| tree | 14092479a77973596686554b3159d4630df6a6a4 | |
| parent | 9179746652faf0aba07b8b7f770dcf29892a24c6 [diff] |
compat breakage in preadv() and pwritev()
Fix for a dumb preadv()/pwritev() compat bug - unlike the native
variants, compat_... ones forget to check FMODE_P{READ,WRITE}, so e.g.
on pipe the native preadv() will fail with -ESPIPE and compat one will
act as readv() and succeed. Not critical, but it's a clear bug with trivial
fix.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>