]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] get rid of corner case in dup3() entirely
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 26 Jul 2008 17:38:19 +0000 (13:38 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 27 Jul 2008 00:53:44 +0000 (20:53 -0400)
commiteeeeedfd0ce34beb8b6e8feab6dcfc8975c3c419
treed9706cc3c26beacd588a9b976bb4384369a2b86d
parent0eeb8cb7060330aeaef66920178bf3f052f70677
[PATCH] get rid of corner case in dup3() entirely

Since Ulrich is OK with getting rid of dup3(fd, fd, flags) completely,
to hell the damn thing goes.  Corner case for dup2() is handled in
sys_dup2() (complete with -EBADF if dup2(fd, fd) is called with fd
that is not open), the rest is done in dup3().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fcntl.c