Automatically set -no-xattr in --action test mode

This commit is contained in:
Reinhard Pointner 2016-05-28 01:44:13 +08:00
parent c6634ab2b5
commit dedc9c9699
1 changed files with 2 additions and 2 deletions

View File

@ -373,11 +373,11 @@ public class Main {
if (args.unixfs) {
System.setProperty("unixfs", "true");
}
if (args.disableExtendedAttributes) {
if (args.disableExtendedAttributes || "TEST".equalsIgnoreCase(args.action)) {
System.setProperty("useExtendedFileAttributes", "false");
System.setProperty("useCreationDate", "false");
}
if (args.action.equalsIgnoreCase("test")) {
if ("TEST".equalsIgnoreCase(args.action)) {
System.setProperty("application.rename.history", "false"); // do not keep history of --action test rename operations
}
}