open-vm-tools: bump to 10.3.10
authorYuhei OKAWA <tochiro.srchack@gmail.com>
Thu, 25 Apr 2019 15:40:14 +0000 (00:40 +0900)
committerYousong Zhou <yszhou4tech@gmail.com>
Fri, 26 Apr 2019 02:31:34 +0000 (10:31 +0800)
Tested on ESXi 6.7

Signed-off-by: Yuhei OKAWA <tochiro.srchack@gmail.com>
utils/open-vm-tools/Makefile
utils/open-vm-tools/patches/0012-Fix-some-bad-derefs-in-primary-NIC-gathering-code.patch [deleted file]

index 9f63758eb182216d4ac3e84cd7e66da6b3ab14e0..c1af74ec93fa96c7e96f4bf20222ac9f28bfb4b8 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=open-vm-tools
-PKG_VERSION:=10.3.5
-PKG_RELEASE:=2
+PKG_VERSION:=10.3.10
+PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-10430147.tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-12406962.tar.gz
 PKG_SOURCE_URL:=https://github.com/vmware/open-vm-tools/releases/download/stable-$(PKG_VERSION)
-PKG_HASH:=364cd0fdfa5a05e872d08609659e6231ec99788669f7ebba24bfb8c94168daef
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-10430147
+PKG_HASH:=a3c02595c802680be258d6249513c76502d383a59597079b10984bb9136dbef5
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-12406962
 PKG_INSTALL:=1
 
 PKG_FIXUP:=autoreconf
diff --git a/utils/open-vm-tools/patches/0012-Fix-some-bad-derefs-in-primary-NIC-gathering-code.patch b/utils/open-vm-tools/patches/0012-Fix-some-bad-derefs-in-primary-NIC-gathering-code.patch
deleted file mode 100644 (file)
index 9974ada..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-From bfa850db67e150e8d44093a14ef6a9999c5c9968 Mon Sep 17 00:00:00 2001
-From: Oliver Kurth <okurth@vmware.com>
-Date: Wed, 29 Aug 2018 13:29:43 -0700
-Subject: [PATCH] Fix some bad derefs in primary NIC gathering code.
-
-Found by user in https://github.com/vmware/open-vm-tools/issues/272
-
-Debug code tries to access a struct field that may not have been initialized.
- - Pointer deref'd without a sanity check.
----
- open-vm-tools/lib/nicInfo/nicInfoPosix.c | 39 +++++++++++++++++++++-----------
- 1 file changed, 26 insertions(+), 13 deletions(-)
-
-diff --git a/lib/nicInfo/nicInfoPosix.c b/lib/nicInfo/nicInfoPosix.c
-index 8a063a0..31c1d1a 100644
---- a/lib/nicInfo/nicInfoPosix.c
-+++ b/lib/nicInfo/nicInfoPosix.c
-@@ -359,7 +359,7 @@ GuestInfoGetNicInfo(unsigned int maxIPv4Routes,
-    /* Get a handle to read the network interface configuration details. */
-    if ((intf = intf_open()) == NULL) {
--      g_debug("Error, failed NULL result from intf_open()\n");
-+      g_warning("%s: intf_open() failed\n", __FUNCTION__);
-       return FALSE;
-    }
-@@ -466,7 +466,15 @@ GuestInfoGetPrimaryIP(void)
-     * the first non-loopback, internet interface in the interface list.
-     */
-    for (curr = ifaces; curr != NULL; curr = curr->ifa_next) {
--      int currFamily = ((struct sockaddr_storage *)curr->ifa_addr)->ss_family;
-+      int currFamily;
-+
-+      /*
-+       * Some interfaces ("tun") have no ifa_addr, so ignore them.
-+       */
-+      if (NULL == curr->ifa_addr) {
-+         continue;
-+      }
-+      currFamily = ((struct sockaddr_storage *)curr->ifa_addr)->ss_family;
-       if (!(curr->ifa_flags & IFF_UP) || curr->ifa_flags & IFF_LOOPBACK) {
-          continue;
-@@ -500,6 +508,7 @@ GuestInfoGetPrimaryIP(void)
- }
- #else
-+
- #ifndef NO_DNET
- char *
-@@ -508,20 +517,24 @@ GuestInfoGetPrimaryIP(void)
-    GuestInfoIpPriority ipp;
-    intf_t *intf = intf_open();
--   if (intf != NULL) {
--      ipp.ipstr = NULL;
--      for (ipp.priority = NICINFO_PRIORITY_PRIMARY;
--          ipp.priority < NICINFO_PRIORITY_MAX;
--          ipp.priority++){
--         intf_loop(intf, GuestInfoGetIntf, &ipp);
--         if (ipp.ipstr != NULL) {
--            break;
--         }
-+   if (NULL == intf) {
-+      g_warning("%s: intf_open() failed\n", __FUNCTION__);
-+      return NULL;
-+   }
-+
-+   ipp.ipstr = NULL;
-+   for (ipp.priority = NICINFO_PRIORITY_PRIMARY;
-+       ipp.priority < NICINFO_PRIORITY_MAX;
-+       ipp.priority++){
-+      intf_loop(intf, GuestInfoGetIntf, &ipp);
-+      if (ipp.ipstr != NULL) {
-+         break;
-       }
--      intf_close(intf);
-    }
-+   intf_close(intf);
--   g_debug("%s: returning '%s'", __FUNCTION__, ipp.ipstr);
-+   g_debug("%s: returning '%s'",
-+           __FUNCTION__, ipp.ipstr ? ipp.ipstr : "<null>");
-    return ipp.ipstr;
- }
--- 
-2.7.4
-