summaryrefslogtreecommitdiffstats
path: root/src/binfmt
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-07-07 01:27:20 +0200
committerDaniel Mack <daniel@zonque.org>2015-07-07 01:27:20 +0200
commitad118bda159d3f9c27c5a15ace54cf808a6e8788 (patch)
tree43eeba4758137b413f7f80f29dd41ded3004d051 /src/binfmt
parentfileio: consolidate write_string_file*() (diff)
downloadsystemd-ad118bda159d3f9c27c5a15ace54cf808a6e8788.tar.xz
systemd-ad118bda159d3f9c27c5a15ace54cf808a6e8788.zip
tree-wide: fix write_string_file() user that should not create files
The latest consolidation cleanup of write_string_file() revealed some users of that helper which should have used write_string_file_no_create() in the past but didn't. Basically, all existing users that write to files in /sys and /proc should not expect to write to a file which is not yet existant.
Diffstat (limited to 'src/binfmt')
-rw-r--r--src/binfmt/binfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binfmt/binfmt.c b/src/binfmt/binfmt.c
index 24eb410571..1e216f52bd 100644
--- a/src/binfmt/binfmt.c
+++ b/src/binfmt/binfmt.c
@@ -191,7 +191,7 @@ int main(int argc, char *argv[]) {
}
/* Flush out all rules */
- write_string_file("/proc/sys/fs/binfmt_misc/status", "-1", WRITE_STRING_FILE_CREATE);
+ write_string_file("/proc/sys/fs/binfmt_misc/status", "-1", 0);
STRV_FOREACH(f, files) {
k = apply_file(*f, true);