switch_root: execv: show error string - ubase - suckless linux base utils
(HTM) git clone git://git.suckless.org/ubase
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ee5b04a7a3d12e8eeac9c9aa0f1ea45e644f854a
(DIR) parent 78ddef361c0a87e1a76c0ff15e75de63b8954818
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 10 May 2015 14:17:56 +0200
switch_root: execv: show error string
Diffstat:
M switch_root.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/switch_root.c b/switch_root.c
@@ -126,6 +126,6 @@ main(int argc, char *argv[])
/* execute init */
execv(argv[1], argv);
- eprintf("can't execute '%s'\n", argv[1]);
+ eprintf("can't execute '%s':", argv[1]);
return 1;
}