aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@openwide.fr>2015-02-09 00:22:09 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-14 09:17:40 +0100
commit43a643a17cda32955e782ce500846f34f620b930 (patch)
tree9496c36f335a2277e7ac164e55fefdf18cef00b2
parent0f7993013429886c3b745d2112d56df06fab8f9c (diff)
downloadbuildroot-43a643a17cda32955e782ce500846f34f620b930.tar.gz
buildroot-43a643a17cda32955e782ce500846f34f620b930.tar.bz2
package/openvmtools: fix syncDriverPosix
Backport a patch from Fedora Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/openvmtools/0007-sizeof_argument.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/openvmtools/0007-sizeof_argument.patch b/package/openvmtools/0007-sizeof_argument.patch
new file mode 100644
index 0000000000..ec2a3f64e2
--- /dev/null
+++ b/package/openvmtools/0007-sizeof_argument.patch
@@ -0,0 +1,18 @@
+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;
+ }
+ }