From 2629bce95b47933979868808345fe1f4794d8b4a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 4 Jan 2005 19:04:23 +0000 Subject: ensure /tmp/syslog in stage2 contains the full log --- mdk-stage1/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c index 622e38ff6..81252a0ea 100644 --- a/mdk-stage1/init.c +++ b/mdk-stage1/init.c @@ -126,7 +126,7 @@ void doklog() } mkdir("/tmp", 0755); - if ((log = open("/tmp/syslog", O_WRONLY | O_CREAT, 0644)) < 0) { + if ((log = open("/tmp/syslog", O_WRONLY | O_CREAT | O_APPEND, 0644)) < 0) { print_error("error opening /tmp/syslog"); sleep(5); return; -- cgit v1.2.1