From: Bernhard Voelker Date: Thu, 23 Oct 2025 07:33:22 +0000 (+0200) Subject: install: enhance error diagnostic when running strip fails X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b60d7a5aa3ca3f23445edac107d792fc7f2828b;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/install.c b/src/install.c index 9cb13d4294..26bc16e110 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 */