[systemd-commits] src/tmpfiles.c
Lennart Poettering
lennart at kemper.freedesktop.org
Wed Jan 5 07:11:21 PST 2011
src/tmpfiles.c | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 022707d96113accf6898b0a59be3a3acde2c6832
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 5 16:11:15 2011 +0100
tmpfiles: nicer message when two or more conflicting lines are configured for the same file
diff --git a/src/tmpfiles.c b/src/tmpfiles.c
index 1234cbf..984eaf0 100644
--- a/src/tmpfiles.c
+++ b/src/tmpfiles.c
@@ -591,6 +591,12 @@ static int parse_line(const char *fname, unsigned line, const char *buffer, cons
}
if ((r = hashmap_put(items, i->path, i)) < 0) {
+ if (r == -EEXIST) {
+ log_warning("Two or more conflicting lines for %s configured, ignoring.", i->path);
+ r = 0;
+ goto finish;
+ }
+
log_error("Failed to insert item %s: %s", i->path, strerror(-r));
goto finish;
}
More information about the systemd-commits
mailing list