From 9caf09de924ad51e1af16d5c29d08fd20c77919b Mon Sep 17 00:00:00 2001 From: Josh Paetzel Date: Tue, 13 Mar 2018 14:20:24 +0000 Subject: [PATCH] Reintegrate accidentally removed patch Along the way remove a patch that is no longer needed. Reported by: John Wolfe Pointyhat: jpaetzel --- emulators/open-vm-tools/Makefile | 2 +- .../patch-lib_hgfsServer_hgfsServerLinux.c | 15 --------- .../patch-services_plugins_vix_vixTools.c | 33 +++++++++++++++++-- 3 files changed, 31 insertions(+), 19 deletions(-) delete mode 100644 emulators/open-vm-tools/files/patch-lib_hgfsServer_hgfsServerLinux.c diff --git a/emulators/open-vm-tools/Makefile b/emulators/open-vm-tools/Makefile index 948293642891..0c25bc0995c6 100644 --- a/emulators/open-vm-tools/Makefile +++ b/emulators/open-vm-tools/Makefile @@ -4,7 +4,7 @@ PORTNAME= open-vm-tools PORTVERSION= ${RELEASE_VER} DISTVERSIONPREFIX= stable- -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 2 CATEGORIES= emulators diff --git a/emulators/open-vm-tools/files/patch-lib_hgfsServer_hgfsServerLinux.c b/emulators/open-vm-tools/files/patch-lib_hgfsServer_hgfsServerLinux.c deleted file mode 100644 index 0bb2f96044d0..000000000000 --- a/emulators/open-vm-tools/files/patch-lib_hgfsServer_hgfsServerLinux.c +++ /dev/null @@ -1,15 +0,0 @@ ---- lib/hgfsServer/hgfsServerLinux.c.orig 2017-07-28 21:59:15 UTC -+++ lib/hgfsServer/hgfsServerLinux.c -@@ -178,6 +178,12 @@ getdents_linux(unsigned int fd, - # endif - } - # define getdents getdents_linux -+#elif defined(__FreeBSD__) && defined(__INO64) -+#define getdents(fd, dirp, count) \ -+({ \ -+ off_t basep; \ -+ getdirentries(fd, dirp, count, &basep); \ -+}) - #elif defined(__FreeBSD__) - #define getdents(fd, dirp, count) \ - ({ \ diff --git a/emulators/open-vm-tools/files/patch-services_plugins_vix_vixTools.c b/emulators/open-vm-tools/files/patch-services_plugins_vix_vixTools.c index 0cfdbb7397e4..625c38af033a 100644 --- a/emulators/open-vm-tools/files/patch-services_plugins_vix_vixTools.c +++ b/emulators/open-vm-tools/files/patch-services_plugins_vix_vixTools.c @@ -1,6 +1,33 @@ ---- services/plugins/vix/vixTools.c.orig 2018-02-24 17:50:37 UTC +--- services/plugins/vix/vixTools.c.orig 2017-12-15 21:11:49 UTC +++ services/plugins/vix/vixTools.c -@@ -10135,7 +10135,7 @@ abort: +@@ -52,6 +52,7 @@ + #include + #include + #include ++#include + + #ifdef _WIN32 + #include +@@ -7330,7 +7331,7 @@ VixToolsRunScript(VixCommandRequestHeader *requestMsg, + goto abort; + } + } +- for (var = 0; var <= 0xFFFFFFFF; var++) { ++ for (var = 0; ; var++) { + free(tempScriptFilePath); + tempScriptFilePath = Str_SafeAsprintf(NULL, + "%s"DIRSEPS"%s%d%s", +@@ -7373,6 +7374,9 @@ VixToolsRunScript(VixCommandRequestHeader *requestMsg, + */ + break; + } ++ if (var == INT_MAX) { ++ break; ++ } + } + if (fd < 0) { + /* +@@ -10131,7 +10135,7 @@ abort: struct passwd pwd; struct passwd *ppwd = &pwd; char *buffer = NULL; // a pool of memory for Posix_Getpwnam_r() to use. @@ -9,7 +36,7 @@ /* * For POSIX systems, look up the uid of 'username', and compare -@@ -10148,9 +10148,15 @@ abort: +@@ -10144,9 +10148,15 @@ abort: * Multiply by 4 to compensate for the conversion to UTF-8 by * the Posix_Getpwnam_r() wrapper. */