]> 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>
Wed, 22 May 2019 20:09:37 +0000 (13:09 -0700)
committerOliver Kurth <okurth@vmware.com>
Wed, 22 May 2019 20:09:37 +0000 (13:09 -0700)
open-vm-tools/lib/glibUtils/fileLogger.c

index 741ae17bfc3873920ae6b01a7b05ea5c005439e4..4940928b8a204b5a949f3da6376b314a032bf85d 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2010-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2010-2019 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -29,6 +29,7 @@
 #if defined(G_PLATFORM_WIN32)
 #  include <process.h>
 #  include <windows.h>
+#  include "win32Access.h"
 #else
 #  include <fcntl.h>
 #  include <unistd.h>
@@ -305,15 +306,11 @@ FileLoggerOpen(FileLogger *data)
 #ifdef VMX86_TOOLS
       /*
        * Make the logfile readable only by user and root/administrator.
+       * Can't do anything if it fails, so ignore return.
        */
 #ifdef _WIN32
-      /*
-       * XXX TODO: Set the ACLs properly for Windows.
-       */
+      (void) Win32Access_SetFileOwnerRW(path);
 #else
-      /*
-       * Can't do anything if it fails, so ignore return.
-       */
       (void) chmod(path, 0600);
 #endif
 #endif // VMX86_TOOLS