diff options
| author | Bernhard Voelker <mail@bernhard-voelker.de> | 2025-10-23 09:33:22 +0200 |
|---|---|---|
| committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2025-10-23 22:37:16 +0200 |
| commit | 8b60d7a5aa3ca3f23445edac107d792fc7f2828b (patch) | |
| tree | 94fc2203a35dfdeffee334f9995fbdffc3a0d392 | |
| parent | split: cleanup after posix_spawn (diff) | |
| download | coreutils-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.c | 8 |
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 */ |
