]> diplodocus.org Git - nmh/commitdiff
mhshow: properly report the name of a failing display program
authorPaul Fox <pgf@foxharp.boston.ma.us>
Fri, 11 Apr 2014 19:55:54 +0000 (15:55 -0400)
committerPaul Fox <pgf@foxharp.boston.ma.us>
Fri, 11 Apr 2014 19:59:52 +0000 (15:59 -0400)
otherwise it's not clear what didn't work.

uip/mhshowsbr.c

index ce8a0e4..4e5eee3 100644 (file)
@@ -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 */