summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/init.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-03 13:54:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-03 13:54:27 +0000
commit18a2fbda564ed7fd184d648a68250e6050995b3f (patch)
treedfe51275f24d8b6341a4550857e35c07fdec56dd /mdk-stage1/init.c
parentfa2fe939a1d0dc387cf068ee83d701202f5c1ea4 (diff)
downloaddrakx-18a2fbda564ed7fd184d648a68250e6050995b3f.tar
drakx-18a2fbda564ed7fd184d648a68250e6050995b3f.tar.gz
drakx-18a2fbda564ed7fd184d648a68250e6050995b3f.tar.bz2
drakx-18a2fbda564ed7fd184d648a68250e6050995b3f.tar.xz
drakx-18a2fbda564ed7fd184d648a68250e6050995b3f.zip
ensure /tmp/syslog in stage2 contains the full log
(currently stage2 init was writing in a file shadowed by stage2 copying the /stage1/tmp/syslog over its file)
Diffstat (limited to 'mdk-stage1/init.c')
-rw-r--r--mdk-stage1/init.c2
1 files changed, 1 insertions, 1 deletions
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;