From bf5d7f786b130e2b1ebe87920e08dd682cd93074 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sun, 3 Mar 2024 02:49:09 +0100 Subject: [PATCH] chmod: slightly adjust error message when preserve-root is triggered One of the GNU tests checks for the exact error message. --- src/uu/chmod/src/chmod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/chmod/src/chmod.rs b/src/uu/chmod/src/chmod.rs index 3c387b5f8..d13257437 100644 --- a/src/uu/chmod/src/chmod.rs +++ b/src/uu/chmod/src/chmod.rs @@ -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() ) ));