diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/hurd/mkdirat.c | 3 |
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); |