diff options
author | Rod Savard <rodney@savard.org> | 2020-03-17 16:48:00 +0300 |
---|---|---|
committer | Rod Savard <rodney@savard.org> | 2020-03-17 16:48:00 +0300 |
commit | 4c41fd691abdd60c6e86366a0133be79ff5485cb (patch) | |
tree | b54130a330d7e88db3db32a114e9f46566b3cdae /Duplicati/Library/Common/IO | |
parent | c86ca0f38c7edc945e69d291afd63c3eb6d51ee4 (diff) |
only store inheritance breaks in metadata when true
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;
}
|