aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstddjb/fd_move.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstddjb/fd_move.c b/src/libstddjb/fd_move.c
index af9769c..c35e4d6 100644
--- a/src/libstddjb/fd_move.c
+++ b/src/libstddjb/fd_move.c
@@ -2,12 +2,13 @@
#include <unistd.h>
#include <errno.h>
+
#include <skalibs/djbunix.h>
int fd_move (int to, int from)
{
int r ;
- if (to == from) return 0 ;
+ if (to == from) return uncoe(to) ;
do
r = dup2(from, to) ;
while ((r == -1) && (errno == EINTR)) ;