[hackers] [ubase] switch_root: execv: show error string || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sun, 10 May 2015 14:41:29 +0200 (CEST)

commit ee5b04a7a3d12e8eeac9c9aa0f1ea45e644f854a
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sun May 10 14:17:56 2015 +0200

    switch_root: execv: show error string

diff --git a/switch_root.c b/switch_root.c
index 2714e3f..204f7d1 100644
--- a/switch_root.c
+++ b/switch_root.c
_AT_@ -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;
 }
Received on Sun May 10 2015 - 14:41:29 CEST

This archive was generated by hypermail 2.3.0 : Sun May 10 2015 - 14:48:13 CEST