diff options
Diffstat (limited to 'source3/smbwrapper/realcalls.c')
-rw-r--r-- | source3/smbwrapper/realcalls.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/smbwrapper/realcalls.c b/source3/smbwrapper/realcalls.c index 4eb3d5e087c..a453aff3eac 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 |