Fix F_DUPFD_CLOEXEC breakage
authorAl Viro <viro@ZenIV.linux.org.uk>
Mon, 8 Oct 2012 22:21:58 +0000 (23:21 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Oct 2012 06:52:31 +0000 (15:52 +0900)
commit121977187ca0a7f20b848530deb04cc56167769b
treebe4fc44f5aff4fe226e371959f3734db5bf4427e
parentf5a246eab9a268f51ba8189ea5b098a1bfff200e
Fix F_DUPFD_CLOEXEC breakage

Fix a braino in F_DUPFD_CLOEXEC; f_dupfd() expects flags for alloc_fd(),
get_unused_fd() etc and there clone-on-exec if O_CLOEXEC, not
FD_CLOEXEC.

Reported-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fcntl.c