summaryrefslogtreecommitdiffstats
path: root/daemon/file.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/file.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/file.c')
-rw-r--r--daemon/file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/daemon/file.c b/daemon/file.c
index 252c02c3..0b50eebd 100644
--- a/daemon/file.c
+++ b/daemon/file.c
@@ -44,11 +44,7 @@ do_touch (const char *path)
return -1;
}
-#ifdef HAVE_FUTIMENS
r = futimens (fd, NULL);
-#else
- r = futimes (fd, NULL);
-#endif
if (r == -1) {
reply_with_perror ("futimens: %s", path);
close (fd);