diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fcntl/reopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcntl/reopen.c b/src/fcntl/reopen.c index e689e58..5903e1b 100644 --- a/src/fcntl/reopen.c +++ b/src/fcntl/reopen.c @@ -74,6 +74,6 @@ int reopen(int fd, int oflag) return -1; if (dup2(r, fd) == -1) return saved_errno = errno, close(r), errno = saved_errno, -1; - return close(fd), 0; + return close(r), 0; } |