about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/dup3.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/dup3.c')
-rw-r--r--sysdeps/mach/hurd/dup3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/dup3.c b/sysdeps/mach/hurd/dup3.c
index 0bcbbfd663..c5f64bcecb 100644
--- a/sysdeps/mach/hurd/dup3.c
+++ b/sysdeps/mach/hurd/dup3.c
@@ -103,7 +103,7 @@ __dup3 (int fd, int fd2, int flags)
 	    {
 	      fd2 = -1;
 	      if (errno == EINVAL)
-		errno = EBADF;	/* POSIX.1-1990 6.2.1.2 ll 54-55.  */
+		__hurd_fail (EBADF);	/* POSIX.1-1990 6.2.1.2 ll 54-55.  */
 	    }
 	  else
 	    {