about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/bind.c')
-rw-r--r--sysdeps/mach/hurd/bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/bind.c b/sysdeps/mach/hurd/bind.c
index 907f445751..5b041f3558 100644
--- a/sysdeps/mach/hurd/bind.c
+++ b/sysdeps/mach/hurd/bind.c
@@ -64,7 +64,7 @@ DEFUN(bind, (fd, addr, len),
 				       MACH_MSG_TYPE_COPY_SEND);
 	  if (! err)
 	    /* Link the node, now a socket, into the target directory.  */
-	    err = __dir_link (node, dir, n);
+	    err = __dir_link (dir, node, n);
 	  __mach_port_deallocate (__mach_task_self (), node);
 	  if (! err)
 	    {