switch_root: execv: show error string - ubase - suckless linux base utils | |
git clone git://git.suckless.org/ubase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit ee5b04a7a3d12e8eeac9c9aa0f1ea45e644f854a | |
parent 78ddef361c0a87e1a76c0ff15e75de63b8954818 | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
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; | |
} |