Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333694
b: refs/heads/master
c: aed9764
h: refs/heads/master
v: v3
  • Loading branch information
Richard W.M. Jones authored and Al Viro committed Oct 10, 2012
1 parent fb5548a commit 61e2e53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1c7d97ad58836affde6e39980b96527510b572e
refs/heads/master: aed976475bff939672b0e21595839c445dcec0fa
3 changes: 3 additions & 0 deletions trunk/fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,9 @@ SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags)
if ((flags & ~O_CLOEXEC) != 0)
return -EINVAL;

if (unlikely(oldfd == newfd))
return -EINVAL;

if (newfd >= rlimit(RLIMIT_NOFILE))
return -EMFILE;

Expand Down

0 comments on commit 61e2e53

Please sign in to comment.