From: Oliver Kurth Date: Wed, 22 May 2019 20:09:37 +0000 (-0700) Subject: Common source file change not applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=873db0841a17a530cabe6b6e6e473647da685c17;p=thirdparty%2Fopen-vm-tools.git Common source file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/glibUtils/fileLogger.c b/open-vm-tools/lib/glibUtils/fileLogger.c index 741ae17bf..4940928b8 100644 --- a/open-vm-tools/lib/glibUtils/fileLogger.c +++ b/open-vm-tools/lib/glibUtils/fileLogger.c @@ -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 # include +# include "win32Access.h" #else # include # include @@ -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