about summary refs log tree commit diff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-09-28 11:36:23 -0700
committerRoland McGrath <roland@redhat.com>2009-09-28 11:37:20 -0700
commitff2835318177dd4600d3aa03626f4b5748e3fbeb (patch)
treeac37f44f50d97e61fe2bac8beab638155ccc9e64 /sysdeps/mach
parent9d076f21cdf5f7bb2293498ed22330bb02c0a68d (diff)
downloadglibc-ff2835318177dd4600d3aa03626f4b5748e3fbeb.tar.gz
glibc-ff2835318177dd4600d3aa03626f4b5748e3fbeb.tar.xz
glibc-ff2835318177dd4600d3aa03626f4b5748e3fbeb.zip
Fix Hurd mkdirat.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/mkdirat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/mkdirat.c b/sysdeps/mach/hurd/mkdirat.c
index 321d59f2fd..a300745690 100644
--- a/sysdeps/mach/hurd/mkdirat.c
+++ b/sysdeps/mach/hurd/mkdirat.c
@@ -22,6 +22,7 @@
 #include <stddef.h>
 #include <sys/stat.h>
 #include <hurd.h>
+#include <hurd/fd.h>
 
 int
 mkdirat (fd, path, mode)
@@ -31,7 +32,7 @@ mkdirat (fd, path, mode)
 {
   error_t err;
   const char *name;
-  file_t parent = __directory_name_split (path, (char **) &name);
+  file_t parent = __directory_name_split_at (fd, path, (char **) &name);
   if (parent == MACH_PORT_NULL)
     return -1;
   err = __dir_mkdir (parent, name, mode & ~_hurd_umask);