forked from pool/virtualbox
015e529abc
This is a maintenance release. The following items were fixed and/or added: VMM: fixed task switches triggered by INTn instruction (bug #17979) Storage: fixed connecting to certain iSCSI targets (bug #17507) Storage: fixed handling of flush requests when configured to be ignored when the host I/O cache is used (bug #17573) Drag and drop: implemented support for UNC paths (bug #17146) Drag and drop: fixed resuming operation when restoring from a saved state (bug #17649) Drag and drop: fixed copying files with long file names (> 248 characters) from guests to Windows hosts (bug #17447) Drag and drop: fixed handling files with Unicode names on Windows guests (bug #15501) Drag and drop: fixed copying empty (0-byte) files to / from guests (bugs #14863 + #17443) Drag and drop: fixed copying over files from hosts to Linux guests (bug #16025) Networking: restore connectivity for guests bridged to host adapters that were unavailable temporarily (Windows hosts, bug #17090) Guest Control: fixed hang when using --wait-stdout and/or --wait-stderr (bug #17386). Needs updating Guest Additions Video recording: fixed starting video recording on VM power up (bug #17307) Linux Additions: various build fixes for kernel modules on recent distributions, and made sure modules end up in initramfs files Linux Additions: build fixes for 4.19, thank you Larry Finger Linux Additions: various small fixes for video driver This version also addresses the following vulnerabilities: CVE-2018-0732, CVE-2018-2909, CVE-2018-3287 CVE-2018-3288, CVE-2018-3289, CVE-2018-3290, CVE-2018-3291, CVE-2018-3292, CVE-2018-3293, CVE-2018-3294, CVE-2018-3295, CVE-2018-3296, CVE-2018-3297, and CVE-2018-3298. bsc#1112097 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=446
21 lines
851 B
Diff
21 lines
851 B
Diff
Index: VirtualBox-5.2.20/src/VBox/Additions/linux/sharedfolders/utils.c
|
|
===================================================================
|
|
--- VirtualBox-5.2.20.orig/src/VBox/Additions/linux/sharedfolders/utils.c
|
|
+++ VirtualBox-5.2.20/src/VBox/Additions/linux/sharedfolders/utils.c
|
|
@@ -49,11 +49,11 @@ static void sf_timespec_from_ftime(RTTIM
|
|
int64_t t = 1000000000 * *time;
|
|
RTTimeSpecSetNano(ts, t);
|
|
}
|
|
-#else /* >= 2.6.0 */
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)
|
|
-static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts)
|
|
-#else
|
|
+#else /* >= 2.6.0 */
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
|
|
static void sf_ftime_from_timespec(struct timespec64 *tv, RTTIMESPEC *ts)
|
|
+#else
|
|
+static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts)
|
|
#endif
|
|
{
|
|
int64_t t = RTTimeSpecGetNano(ts);
|