summaryrefslogtreecommitdiffstats
path: root/src/fsck
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-13 14:59:56 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-13 14:59:56 +0100
commitc8a202b7d47f9d6bba3100a208abdadfc383499e (patch)
treed19560cf0723f8e2305170881eb442b5ecb12b0d /src/fsck
parenteverywhere: make use of new0() and macro() macros, and stop using perror() (diff)
downloadsystemd-c8a202b7d47f9d6bba3100a208abdadfc383499e.tar.xz
systemd-c8a202b7d47f9d6bba3100a208abdadfc383499e.zip
everywhere: always use O_CLOEXEC where it makes sense
Diffstat (limited to 'src/fsck')
-rw-r--r--src/fsck/fsck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c
index 9170768cec..8facc88bb4 100644
--- a/src/fsck/fsck.c
+++ b/src/fsck/fsck.c
@@ -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;