[hackers] [ubase] Fixup error message in switch_root || sin
commit 33be4f39c27a81dd797f1a5e94a5145f02da7340
Author: sin <sin_AT_2f30.org>
Date: Mon Apr 14 11:27:18 2014 +0100
Fixup error message in switch_root
diff --git a/switch_root.c b/switch_root.c
index f986950..388ccd4 100644
--- a/switch_root.c
+++ b/switch_root.c
_AT_@ -114,9 +114,9 @@ main(int argc, char **argv)
if(open(console, O_RDWR) == -1)
eprintf("open %s:", console);
if (dup2(STDIN_FILENO, STDOUT_FILENO) != STDOUT_FILENO)
- eprintf("dup2 %s:", "0,1");
+ eprintf("dup2 %s:", "stdin,stdout");
if (dup2(STDIN_FILENO, STDERR_FILENO) != STDERR_FILENO)
- eprintf("dup2 %s:", "0,2");
+ eprintf("dup2 %s:", "stdin,stderr");
}
/* execute init */
Received on Mon Apr 14 2014 - 12:27:37 CEST
This archive was generated by hypermail 2.3.0
: Mon Apr 14 2014 - 12:36:15 CEST