forked from pool/virtualbox
c27d711a71
- fix shared folders (bnc#841673). OBS-URL: https://build.opensuse.org/request/show/204798 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=141
29 lines
985 B
Diff
29 lines
985 B
Diff
Index: src/VBox/Additions/linux/sharedfolders/dirops.c
|
|
===================================================================
|
|
--- src/VBox/Additions/linux/sharedfolders/dirops.c (revision 48528)
|
|
+++ src/VBox/Additions/linux/sharedfolders/dirops.c (revision 48529)
|
|
@@ -282,10 +282,13 @@
|
|
}
|
|
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
|
|
- err = dir_emit(ctx, d_name, strlen(d_name), fake_ino, DT_UNKNOWN);
|
|
+ if (!dir_emit(ctx, d_name, strlen(d_name), fake_ino, DT_UNKNOWN))
|
|
+ {
|
|
+ LogFunc(("dir_emit failed\n"));
|
|
+ return 0;
|
|
+ }
|
|
#else
|
|
err = filldir(opaque, d_name, strlen(d_name), dir->f_pos, fake_ino, DT_UNKNOWN);
|
|
-#endif
|
|
if (err)
|
|
{
|
|
LogFunc(("filldir returned error %d\n", err));
|
|
@@ -293,6 +296,7 @@
|
|
only when it runs out of space in opaque */
|
|
return 0;
|
|
}
|
|
+#endif
|
|
|
|
dir->f_pos += 1;
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
|