]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file change not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Mon, 3 Jun 2019 20:39:45 +0000 (13:39 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 3 Jun 2019 20:39:45 +0000 (13:39 -0700)
open-vm-tools/services/plugins/deployPkg/deployPkgLog.c

index dcc09ec50a025cc5a64ac14fcd1ff69915203ed5..f02585507e632de4ad08e577b56a90853e8b6abf 100644 (file)
@@ -34,6 +34,7 @@
 
 #ifdef _WIN32
 #include <windows.h>
+#include "win32Access.h"
 #endif
 
 static FILE* _file = NULL;
@@ -82,6 +83,8 @@ DeployPkgLog_Open()
 #ifndef _WIN32
          setlinebuf(_file);
          (void) chmod(logPath, 0600);
+#else
+         (void)Win32Access_SetFileOwnerRW(logPath);
 #endif
          DeployPkgLog_Log(log_debug, "## Starting deploy pkg operation");
       }