From: Paul Fox Date: Fri, 11 Apr 2014 19:55:54 +0000 (-0400) Subject: mhshow: properly report the name of a failing display program X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5a732c22ede9a35af8e5c77a10ddd0a4fc8e4122 mhshow: properly report the name of a failing display program otherwise it's not clear what didn't work. --- diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index ce8a0e4d..4e5eee31 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -466,7 +466,7 @@ show_content_aux2 (CT ct, int alternate, char *cracked, char *buffer, close (fd); execvp (file, vec); fprintf (stderr, "unable to exec "); - perror ("/bin/sh"); + perror (buffer); _exit (-1); /* NOTREACHED */