On Tue, Oct 30, 2012 at 8:00 PM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote: > > Umm... After looking at what POSIX actually says... There is an issue, > all right. Thanks for spotting. Fix follows: > > Return the right error value when dup2() or dup3() newfd argument is too large I don't think this fixes anything. You're fixing replace_fd(), but dup2/dup3 don't actually *use* that. They have their own RLIMIT_NOFILE check and return -EMFILE there. Hmm? Linus -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html