2013-03-27 13:58:31 +01:00
|
|
|
From 64c36ac79fca8f0214faed8b7aff19b379b1ac1b Mon Sep 17 00:00:00 2001
|
2013-01-08 16:05:04 +01:00
|
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
|
|
Date: Tue, 8 Jan 2013 15:45:01 +0100
|
2013-03-27 13:58:31 +01:00
|
|
|
Subject: [PATCH 2/8] Ignore duplicate paths in "systemctl start"
|
2013-01-08 16:05:04 +01:00
|
|
|
|
|
|
|
---
|
2013-03-27 13:58:31 +01:00
|
|
|
src/systemctl/systemctl.c | 6 ++++--
|
|
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
2012-10-05 22:58:36 +02:00
|
|
|
|
|
|
|
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
|
2013-03-27 13:58:31 +01:00
|
|
|
index edd136a..86ce32a 100644
|
2012-10-05 22:58:36 +02:00
|
|
|
--- a/src/systemctl/systemctl.c
|
|
|
|
+++ b/src/systemctl/systemctl.c
|
2013-03-27 13:58:31 +01:00
|
|
|
@@ -1510,8 +1510,10 @@ static int start_unit_one(
|
2012-10-05 22:58:36 +02:00
|
|
|
r = set_put(s, p);
|
|
|
|
if (r < 0) {
|
2013-03-27 13:58:31 +01:00
|
|
|
free(p);
|
2012-10-05 22:58:36 +02:00
|
|
|
- log_error("Failed to add path to set.");
|
|
|
|
- return r;
|
|
|
|
+ if (r != -EEXIST) {
|
|
|
|
+ log_error("Failed to add path %s to set.", p);
|
|
|
|
+ return r;
|
|
|
|
+ }
|
|
|
|
}
|
2013-03-27 13:58:31 +01:00
|
|
|
}
|
2012-10-05 22:58:36 +02:00
|
|
|
|
2013-01-08 16:05:04 +01:00
|
|
|
--
|
2013-03-27 13:58:31 +01:00
|
|
|
1.8.1
|
2013-01-08 16:05:04 +01:00
|
|
|
|