From 9a608e5bb2d207ab5667c9586b9a930d23e7938f Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 15 Dec 2012 22:13:25 +0100 Subject: [PATCH] Fix exit code in chvideomode. --- utils/chvideomode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/chvideomode.cpp b/utils/chvideomode.cpp index 45bac1ba..09654416 100644 --- a/utils/chvideomode.cpp +++ b/utils/chvideomode.cpp @@ -377,7 +377,7 @@ Try make sure the desired driver is loaded and is configured correctly.\n"); exit(WEXITSTATUS(status)); } execvp(argv[1], argv + 1); - perror(argv[1]); + error(127, errno, "`%s'", argv[1]); } return 0;