Merge pull request #4030 from drwtsn32x/fix-issue-4028
Fix bug in restoring file permissions on Windows.
This commit is contained in:
@@ -23,6 +23,7 @@ using System.Linq;
|
||||
|
||||
using AlphaFS = Alphaleonis.Win32.Filesystem;
|
||||
using Duplicati.Library.Interface;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Duplicati.Library.Common.IO
|
||||
{
|
||||
@@ -59,11 +60,19 @@ namespace Duplicati.Library.Common.IO
|
||||
|
||||
private class FileSystemAccess
|
||||
{
|
||||
// Use JsonProperty Attribute to allow readonly fields to be set by deserializer
|
||||
// https://github.com/duplicati/duplicati/issues/4028
|
||||
[JsonProperty]
|
||||
public readonly FileSystemRights Rights;
|
||||
[JsonProperty]
|
||||
public readonly AccessControlType ControlType;
|
||||
[JsonProperty]
|
||||
public readonly string SID;
|
||||
[JsonProperty]
|
||||
public readonly bool Inherited;
|
||||
[JsonProperty]
|
||||
public readonly InheritanceFlags Inheritance;
|
||||
[JsonProperty]
|
||||
public readonly PropagationFlags Propagation;
|
||||
|
||||
public FileSystemAccess()
|
||||
|
||||
Reference in New Issue
Block a user