30 lines
966 B
Diff
30 lines
966 B
Diff
From b8acf19dbd37f801d5eeb76170f84bc8d75e464c Mon Sep 17 00:00:00 2001
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
Date: Tue, 8 Jan 2013 15:45:01 +0100
|
|
Subject: [PATCH 2/7] Ignore duplicate paths in "systemctl start"
|
|
|
|
---
|
|
src/systemctl/systemctl.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
|
|
index 1191c7a..4cd64f5 100644
|
|
--- a/src/systemctl/systemctl.c
|
|
+++ b/src/systemctl/systemctl.c
|
|
@@ -1510,8 +1510,10 @@ static int start_unit_one(
|
|
r = set_put(s, p);
|
|
if (r < 0) {
|
|
free(p);
|
|
- 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;
|
|
+ }
|
|
}
|
|
}
|
|
|
|
--
|
|
1.8.1
|
|
|