Commit 43a643a1 authored by Romain Naour's avatar Romain Naour Committed by Thomas Petazzoni
Browse files

package/openvmtools: fix syncDriverPosix



Backport a patch from Fedora

Signed-off-by: default avatarRomain Naour <romain.naour@openwide.fr>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 0f799301
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
Patch from Fedora:

http://pkgs.fedoraproject.org/cgit/open-vm-tools.git/commit/sizeof_argument.patch?id=3031fb5279096189aeb50d197b02313c12d701f3

Signed-off-by: Romain Naour <romain.naour@openwide.fr>

--- open-vm-tools-9.4.6-1770165.orig/lib/syncDriver/syncDriverPosix.c	2014-07-15 13:42:21.043818478 -0700
+++ open-vm-tools-9.4.6-1770165/lib/syncDriver/syncDriverPosix.c	2014-07-15 13:55:41.724103304 -0700
@@ -72,8 +72,7 @@
    size_t i;
 
    for (i = 0; i < ARRAYSIZE(gRemoteFSTypes); i++) {
-      if (Str_Strncmp(fsType, gRemoteFSTypes[i],
-                      sizeof gRemoteFSTypes[i]) == 0) {
+      if (Str_Strcmp(gRemoteFSTypes[i], fsType) == 0) {
          return TRUE;
       }
    }