/*********************************************************
- * 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
#if defined(G_PLATFORM_WIN32)
# include <process.h>
# include <windows.h>
+# include "win32Access.h"
#else
# include <fcntl.h>
# include <unistd.h>
#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