chiark / gitweb /
tree-wide: fix write_string_file() user that should not create files
[elogind.git] / src / shared / sysctl-util.c
index 232a005054a3584b84e48e447c8a444f64cefa95..1de0b94fd5fbb0ac4440018cd9d1c13f5039f2a8 100644 (file)
@@ -66,7 +66,7 @@ int sysctl_write(const char *property, const char *value) {
         log_debug("Setting '%s' to '%s'", property, value);
 
         p = strjoina("/proc/sys/", property);
-        return write_string_file(p, value, WRITE_STRING_FILE_CREATE);
+        return write_string_file(p, value, 0);
 }
 
 int sysctl_read(const char *property, char **content) {