Print an error message when calls to exec* functions fail
authorMichael Schutte <michi@uiae.at>
Thu, 14 Aug 2008 08:47:25 +0000 (10:47 +0200)
committerAlexey Gladkov <legion@altlinux.org>
Thu, 14 Aug 2008 09:08:08 +0000 (13:08 +0400)
Patch proposed by Ian Jackson <ian@chiark.greenend.co.uk> on
<http://bugs.debian.org/190387>.

Signed-off-by: Michael Schutte <michi@uiae.at>
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
src/openvt.c

index f7eced2..0d23d96 100644 (file)
@@ -292,6 +292,7 @@ got_vtno:
          execlp(cmd, def_cmd, NULL);
       else
         execvp(cmd, &argv[optind]);
+      perror("openvt: exec failed");
       _exit(127);              /* exec failed */
    }