summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/realcalls.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-05 08:54:55 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-05 08:54:55 +0000
commit61d8534d7cd274d521ee211ac927096a465a0551 (patch)
tree8b4329273f34017dfe22e92fca3eff4b3e6e2f4e /source3/smbwrapper/realcalls.c
parent81905488fffbf6fbdcfd8ec351566026445f9e01 (diff)
downloadsamba-61d8534d7cd274d521ee211ac927096a465a0551.tar.gz
samba-61d8534d7cd274d521ee211ac927096a465a0551.tar.bz2
samba-61d8534d7cd274d521ee211ac927096a465a0551.zip
handle systems that are missing either SYS_utime or SYS_utimes
(This used to be commit 4379f0fe48a40e1ff6b343bbcff542efbda1f4f8)
Diffstat (limited to 'source3/smbwrapper/realcalls.c')
-rw-r--r--source3/smbwrapper/realcalls.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/smbwrapper/realcalls.c b/source3/smbwrapper/realcalls.c
index 4eb3d5e087..a453aff3ea 100644
--- a/source3/smbwrapper/realcalls.c
+++ b/source3/smbwrapper/realcalls.c
@@ -35,3 +35,15 @@ int real_utime(const char *name, struct utimbuf *buf)
return real_utimes(name, &tv[0]);
}
#endif
+
+#ifdef REPLACE_UTIMES
+int real_utimes(const char *name, struct timeval tv[2])
+{
+ struct utimbuf buf;
+
+ buf.actime = tv[0].tv_sec;
+ buf.modtime = tv[1].tv_sec;
+
+ return real_utime(name, &buf);
+}
+#endif