aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2025-10-23 09:33:22 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2025-10-23 22:37:16 +0200
commit8b60d7a5aa3ca3f23445edac107d792fc7f2828b (patch)
tree94fc2203a35dfdeffee334f9995fbdffc3a0d392
parentsplit: cleanup after posix_spawn (diff)
downloadcoreutils-8b60d7a5aa3ca3f23445edac107d792fc7f2828b.tar.gz
coreutils-8b60d7a5aa3ca3f23445edac107d792fc7f2828b.zip
install: enhance error diagnostic when running strip fails
* src/install.c (strip): Mention explicitly that the strip program failed in the case the user specified a custom strip program name.
-rw-r--r--src/install.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c
index 9cb13d429..26bc16e11 100644
--- a/src/install.c
+++ b/src/install.c
@@ -518,7 +518,13 @@ strip (char const *name)
bool ok = false;
if (result != 0)
- error (0, result, _("cannot run %s"), quoteaf (strip_program));
+ {
+ error (0, result,
+ streq (strip_program, "strip")
+ ? _("cannot run %s")
+ : _("cannot run strip program %s"),
+ quoteaf (strip_program));
+ }
else
{
/* Wait for 'strip' to complete, and emit a warning message on failure */