diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-05-31 12:04:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-05-31 12:04:39 +0200 |
commit | 669fc4e5c5d1f8b96eb62695e09354486f7bfc4c (patch) | |
tree | 1be87507b0b933e15dd8dbe56c471434220b5015 /src/tmpfiles | |
parent | Merge pull request #9115 from yuwata/rfe-8491 (diff) | |
download | systemd-669fc4e5c5d1f8b96eb62695e09354486f7bfc4c.tar.xz systemd-669fc4e5c5d1f8b96eb62695e09354486f7bfc4c.zip |
tree-wide: some O_NDELAY → O_NONBLOCK fixes
Somehow the coccinelle script misses these, hence fix them manually.
Diffstat (limited to 'src/tmpfiles')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 049e24b8bd..ae39d720a2 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1245,7 +1245,7 @@ static int write_one_file(Item *i, const char *path) { RUN_WITH_UMASK(0000) { mac_selinux_create_file_prepare(path, S_IFREG); - fd = open(path, flags|O_NDELAY|O_CLOEXEC|O_WRONLY|O_NOCTTY, i->mode); + fd = open(path, flags|O_NONBLOCK|O_CLOEXEC|O_WRONLY|O_NOCTTY, i->mode); mac_selinux_create_file_clear(); } |