diff options
Diffstat (limited to 'Duplicati/Library/Common/IO')
-rw-r--r-- | Duplicati/Library/Common/IO/SystemIOWindows.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Duplicati/Library/Common/IO/SystemIOWindows.cs b/Duplicati/Library/Common/IO/SystemIOWindows.cs index 13342f417..dc4fa9cc0 100644 --- a/Duplicati/Library/Common/IO/SystemIOWindows.cs +++ b/Duplicati/Library/Common/IO/SystemIOWindows.cs @@ -487,7 +487,11 @@ namespace Duplicati.Library.Common.IO objs.Add(new FileSystemAccess((FileSystemAccessRule)f));
dict["win-ext:accessrules"] = SerializeObject(objs);
- dict["win-ext:accessrulesprotected"] = rules.AreAccessRulesProtected.ToString();
+
+ if (rules.AreAccessRulesProtected)
+ {
+ dict["win-ext:accessrulesprotected"] = rules.AreAccessRulesProtected.ToString();
+ }
return dict;
}
|