chiark / gitweb /
honor SELinux labels, when creating and writing config files
[elogind.git] / src / sysctl / sysctl.c
index f59a85832366f6439d29afb3942fe5b8877f5cd5..2d43660bb5285a8eaf5435f04a7be2bd8f2ec45f 100644 (file)
@@ -34,6 +34,7 @@
 #include "hashmap.h"
 #include "path-util.h"
 #include "conf-files.h"
+#include "fileio.h"
 
 static char **arg_prefixes = NULL;
 
@@ -169,7 +170,8 @@ static int parse_file(Hashmap *sysctl_options, const char *path, bool ignore_eno
                 existing = hashmap_get(sysctl_options, p);
                 if (existing) {
                         if (!streq(value, existing))
-                                log_warning("Two ore more conflicting assignments of %s, ignoring.", property);
+                                log_warning("Duplicate assignment of %s in file '%s', ignoring.",
+                                            p, path);
 
                         continue;
                 }