summaryrefslogtreecommitdiffstats
path: root/daemon/utimens.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-11-25 12:17:10 +0000
committerRichard Jones <rjones@redhat.com>2009-11-25 16:28:26 +0000
commitb3035e8d7c04a71d9a54ab7e52bc9e169ecf0b47 (patch)
treed950a0222029356a4cc3b6f38e632c7c8cb4f670 /daemon/utimens.c
parent25081d62684eea9e704ecc0a0a15d2421b203356 (diff)
downloadlibguestfs-b3035e8d7c04a71d9a54ab7e52bc9e169ecf0b47.tar.gz
libguestfs-b3035e8d7c04a71d9a54ab7e52bc9e169ecf0b47.tar.xz
libguestfs-b3035e8d7c04a71d9a54ab7e52bc9e169ecf0b47.zip
daemon: Use gnulib futimens module.
Instead of checking for futimens support and falling back (incorrectly in one case) to using futimes, use gnulib's module. However the gnulib module does not yet support Win32, so this change is only really useful on platforms like RHEL 5.
Diffstat (limited to 'daemon/utimens.c')
-rw-r--r--daemon/utimens.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/daemon/utimens.c b/daemon/utimens.c
index 2d0e3bfc..e836b4e4 100644
--- a/daemon/utimens.c
+++ b/daemon/utimens.c
@@ -33,10 +33,6 @@ do_utimens (const char *path,
int64_t atsecs, int64_t atnsecs,
int64_t mtsecs, int64_t mtnsecs)
{
-#ifndef HAVE_FUTIMENS
- reply_with_error ("utimens: not supported in this appliance");
- return -1;
-#else
int fd;
int r;
@@ -77,5 +73,4 @@ do_utimens (const char *path,
}
return 0;
-#endif /* HAVE_FUTIMENS */
}