chmod: slightly adjust error message when preserve-root is triggered

One of the GNU tests checks for the exact error message.
This commit is contained in:
Ben Wiederhake
2024-03-07 14:49:41 +01:00
parent b3fd711c99
commit bf5d7f786b
+1 -1
View File
@@ -267,7 +267,7 @@ impl Chmoder {
return Err(USimpleError::new(
1,
format!(
"it is dangerous to operate recursively on {}\nuse --no-preserve-root to override this failsafe",
"it is dangerous to operate recursively on {}\nchmod: use --no-preserve-root to override this failsafe",
filename.quote()
)
));