diff options
author | Ben Allen <bensallen@me.com> | 2016-01-22 04:40:25 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-08-15 16:30:06 +0000 |
commit | 59e71adbea0f889c3ffb7188fa4b9f988d6b5535 (patch) | |
tree | e123bb9c4787d2024dd3043d920131f6bcc8b5f1 /testing/virtualbox-guest-additions/futimens.patch | |
parent | a696503b386fcb8b9f521af3693f85752f0e9b4a (diff) | |
download | aports-59e71adbea0f889c3ffb7188fa4b9f988d6b5535.tar.bz2 aports-59e71adbea0f889c3ffb7188fa4b9f988d6b5535.tar.xz |
testing/virtualbox-guest-additions: new aport
- Userland components to VirtualBox's guest additions, eg. VBoxService, VBoxControl, mount.vboxsf, and a basic init script.
- Creates vboxsf group on install to allow VBoxService to auto-mount shared folders.
Diffstat (limited to 'testing/virtualbox-guest-additions/futimens.patch')
-rw-r--r-- | testing/virtualbox-guest-additions/futimens.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/virtualbox-guest-additions/futimens.patch b/testing/virtualbox-guest-additions/futimens.patch new file mode 100644 index 0000000000..f85e1ae6e2 --- /dev/null +++ b/testing/virtualbox-guest-additions/futimens.patch @@ -0,0 +1,16 @@ +--- ./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)); |