-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This incorporates some changes from vcunat@eb64a2f.
- Loading branch information
Showing
10 changed files
with
68 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 9 additions & 10 deletions
19
pkgs/os-specific/linux/systemd/0002-Ignore-duplicate-paths-in-systemctl-start.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
From 2b0a9106d3aabb365af0cc34b595a1e697120f37 Mon Sep 17 00:00:00 2001 | ||
From 64c36ac79fca8f0214faed8b7aff19b379b1ac1b 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/6] Ignore duplicate paths in "systemctl start" | ||
Subject: [PATCH 2/8] Ignore duplicate paths in "systemctl start" | ||
|
||
--- | ||
src/systemctl/systemctl.c | 7 +++++-- | ||
1 file changed, 5 insertions(+), 2 deletions(-) | ||
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 2ebfff8..9f99df5 100644 | ||
index edd136a..86ce32a 100644 | ||
--- a/src/systemctl/systemctl.c | ||
+++ b/src/systemctl/systemctl.c | ||
@@ -1591,8 +1591,11 @@ static int start_unit_one( | ||
|
||
@@ -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; | ||
+ free(p); | ||
+ if (r != -EEXIST) { | ||
+ log_error("Failed to add path %s to set.", p); | ||
+ return r; | ||
+ } | ||
} | ||
} | ||
|
||
p = NULL; | ||
-- | ||
1.8.0.1 | ||
1.8.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
pkgs/os-specific/linux/systemd/0007-Ignore-IPv6-link-local-addresses.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
pkgs/os-specific/linux/systemd/0008-Fix-a-segfault-in-nscd-when-using-nss-myhostname.patch
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...os-specific/linux/systemd/0008-systemd-sysctl-Handle-missing-etc-sysctl.conf-proper.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From dcfb048af5face4787ecdf29c00454898c52963d Mon Sep 17 00:00:00 2001 | ||
From: Eelco Dolstra <eelco.dolstra@logicblox.com> | ||
Date: Wed, 27 Mar 2013 13:33:09 +0100 | ||
Subject: [PATCH 8/8] systemd-sysctl: Handle missing /etc/sysctl.conf properly | ||
|
||
Since fabe5c0e5fce730aa66e10a9c4f9fdd443d7aeda, systemd-sysctl returns | ||
a non-zero exit code if /etc/sysctl.conf does not exist, due to a | ||
broken ENOENT check. | ||
--- | ||
src/sysctl/sysctl.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c | ||
index 2d43660..79f3f77 100644 | ||
--- a/src/sysctl/sysctl.c | ||
+++ b/src/sysctl/sysctl.c | ||
@@ -125,7 +125,7 @@ static int parse_file(Hashmap *sysctl_options, const char *path, bool ignore_eno | ||
|
||
r = search_and_fopen_nulstr(path, "re", conf_file_dirs, &f); | ||
if (r < 0) { | ||
- if (ignore_enoent && errno == -ENOENT) | ||
+ if (ignore_enoent && r == -ENOENT) | ||
return 0; | ||
|
||
log_error("Failed to open file '%s', ignoring: %s", path, strerror(-r)); | ||
-- | ||
1.8.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This make option seems unused. I can't find any reference to string
hwdb_bin
in systemd-217 sources or our patches. Is that fine?