From fb2e8cb8a28a2a1a84909a8793a57d0d575da610 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 16 Mar 2021 16:12:50 -0700 Subject: Make ResetAcl opt-in instead of opt-out --- src/WixToolset.Core/Bind/TransferFilesCommand.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/WixToolset.Core/Bind') diff --git a/src/WixToolset.Core/Bind/TransferFilesCommand.cs b/src/WixToolset.Core/Bind/TransferFilesCommand.cs index 51d5a744..b3b74fbc 100644 --- a/src/WixToolset.Core/Bind/TransferFilesCommand.cs +++ b/src/WixToolset.Core/Bind/TransferFilesCommand.cs @@ -13,12 +13,12 @@ namespace WixToolset.Core.Bind internal class TransferFilesCommand { - public TransferFilesCommand(IMessaging messaging, IEnumerable extensions, IEnumerable fileTransfers, bool suppressAclReset) + public TransferFilesCommand(IMessaging messaging, IEnumerable extensions, IEnumerable fileTransfers, bool resetAcls) { this.Extensions = extensions; this.Messaging = messaging; this.FileTransfers = fileTransfers; - this.SuppressAclReset = suppressAclReset; + this.ResetAcls = resetAcls; } private IMessaging Messaging { get; } @@ -27,7 +27,7 @@ namespace WixToolset.Core.Bind private IEnumerable FileTransfers { get; } - private bool SuppressAclReset { get; } + private bool ResetAcls { get; } public void Execute() { @@ -152,9 +152,9 @@ namespace WixToolset.Core.Bind } while (retry); } - // Finally, if there were any files remove the ACL that may have been added to + // Finally, if directed then reset remove ACLs that may may have been picked up // during the file transfer process. - if (0 < destinationFiles.Count && !this.SuppressAclReset) + if (this.ResetAcls && 0 < destinationFiles.Count) { try { -- cgit v1.2.3-55-g6feb