diff options
Diffstat (limited to 'testing/virtualbox-guest-additions/futimens.patch')
-rw-r--r-- | testing/virtualbox-guest-additions/futimens.patch | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/testing/virtualbox-guest-additions/futimens.patch b/testing/virtualbox-guest-additions/futimens.patch deleted file mode 100644 index f85e1ae6e2..0000000000 --- a/testing/virtualbox-guest-additions/futimens.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- ./src/VBox/Runtime/r3/posix/fileio2-posix.cpp.orig -+++ ./src/VBox/Runtime/r3/posix/fileio2-posix.cpp -@@ -165,7 +165,12 @@ - - /* XXX this falls back to utimes("/proc/self/fd/...",...) for older kernels/glibcs and this - * will not work for hardened builds where this directory is owned by root.root and mode 0500 */ -- if (futimes(RTFileToNative(hFile), aTimevals)) -+ struct timespec aTimespecs[2] = { -+ { aTimevals[0].tv_sec, aTimevals[0].tv_usec * 1000 }, -+ { aTimevals[1].tv_sec, aTimevals[1].tv_usec * 1000 }, -+ }; -+ -+ if (futimens(RTFileToNative(hFile), aTimespecs)) - { - int rc = RTErrConvertFromErrno(errno); - Log(("RTFileSetTimes(%RTfile,%p,%p,,): returns %Rrc\n", hFile, pAccessTime, pModificationTime, rc)); |