]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
install: enhance error diagnostic when running strip fails
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 23 Oct 2025 07:33:22 +0000 (09:33 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Thu, 23 Oct 2025 20:37:16 +0000 (22:37 +0200)
* src/install.c (strip): Mention explicitly that the strip program
failed in the case the user specified a custom strip program name.

src/install.c

index 9cb13d42946e531f14311ca656a485162ecc6320..26bc16e110f94bc02ebb8c32fbc98869a8a3effc 100644 (file)
@@ -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  */