chiark / gitweb /
tree-wide: fix write_string_file() user that should not create files
[elogind.git] / src / shared / smack-util.c
index 0c3697b61b841b29b5c9504d336c47034058362f..047aa294f4c0a11610530adb2dd875ca7ec4ebeb 100644 (file)
@@ -139,7 +139,7 @@ int mac_smack_apply_pid(pid_t pid, const char *label) {
                 return 0;
 
         p = procfs_file_alloca(pid, "attr/current");
-        r = write_string_file(p, label, WRITE_STRING_FILE_CREATE);
+        r = write_string_file(p, label, 0);
         if (r < 0)
                 return r;
 #endif