2013-01-08 16:05:04 +01:00
|
|
|
From 2b0a9106d3aabb365af0cc34b595a1e697120f37 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
|
|
Date: Tue, 8 Jan 2013 15:45:01 +0100
|
2013-01-08 18:41:21 +01:00
|
|
|
Subject: [PATCH 2/6] Ignore duplicate paths in "systemctl start"
|
2013-01-08 16:05:04 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
src/systemctl/systemctl.c | 7 +++++--
|
|
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
2012-10-05 22:58:36 +02:00
|
|
|
|
|
|
|
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
|
2013-01-08 16:05:04 +01:00
|
|
|
index 2ebfff8..9f99df5 100644
|
2012-10-05 22:58:36 +02:00
|
|
|
--- a/src/systemctl/systemctl.c
|
|
|
|
+++ b/src/systemctl/systemctl.c
|
2013-01-08 16:05:04 +01:00
|
|
|
@@ -1591,8 +1591,11 @@ static int start_unit_one(
|
2012-10-05 22:58:36 +02:00
|
|
|
|
|
|
|
r = set_put(s, p);
|
|
|
|
if (r < 0) {
|
|
|
|
- log_error("Failed to add path to set.");
|
|
|
|
- return r;
|
|
|
|
+ free(p);
|
|
|
|
+ if (r != -EEXIST) {
|
|
|
|
+ log_error("Failed to add path %s to set.", p);
|
|
|
|
+ return r;
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
p = NULL;
|
2013-01-08 16:05:04 +01:00
|
|
|
--
|
|
|
|
1.8.0.1
|
|
|
|
|