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-03 02:49:09 +01:00
parent b3fd711c99
commit bf5d7f786b

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()
)
));