chiark / gitweb /
everywhere: always use O_CLOEXEC where it makes sense
[elogind.git] / src / fsck / fsck.c
index 9170768cec957147a9c79390a42115344a9f3030..8facc88bb43149fbbd4233051c36e6aab1d86002 100644 (file)
@@ -155,7 +155,7 @@ static int process_progress(int fd) {
                 return -errno;
         }
 
-        console = fopen("/dev/console", "w");
+        console = fopen("/dev/console", "we");
         if (!console)
                 return -ENOMEM;