about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/utimes.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/utimes.c')
-rw-r--r--sysdeps/mach/hurd/utimes.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sysdeps/mach/hurd/utimes.c b/sysdeps/mach/hurd/utimes.c
index c599878887..b0a71bbefc 100644
--- a/sysdeps/mach/hurd/utimes.c
+++ b/sysdeps/mach/hurd/utimes.c
@@ -28,18 +28,6 @@
 int
 __utimes (const char *file, const struct timeval tvp[2])
 {
-  error_t err;
-  file_t port;
-
-  port = __file_name_lookup (file, 0, 0);
-  if (port == MACH_PORT_NULL)
-    return -1;
-
-  err = hurd_futimes (port, tvp);
-
-  __mach_port_deallocate (__mach_task_self (), port);
-  if (err)
-    return __hurd_fail (err);
-  return 0;
+  return __futimesat (AT_FDCWD, file, tvp);
 }
 weak_alias (__utimes, utimes)