chiark / gitweb /
fileio: consolidate write_string_file*()
[elogind.git] / src / shared / sysctl-util.c
index 55f4e48601436757d0bd7ed31ae062bb296bc5f9..232a005054a3584b84e48e447c8a444f64cefa95 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);
         log_debug("Setting '%s' to '%s'", property, value);
 
         p = strjoina("/proc/sys/", property);
-        return write_string_file(p, value);
+        return write_string_file(p, value, WRITE_STRING_FILE_CREATE);
 }
 
 int sysctl_read(const char *property, char **content) {
 }
 
 int sysctl_read(const char *property, char **content) {