libcgroup/libcgroup-0.36.2-systemd.patch
2010-11-12 09:22:30 +01:00

25 lines
625 B
Diff

Ignore systemd hierarchy. Quick&dirity fix for bug #627378
Author: Dhaval Giani <dhaval.bugzilla@thegianis.in>
@@ -, +, @@
src/api.c | 8 ++++++++
1 file changed, 8 insertions(+)
--- libcgroup-0.36.2/src/api.c
+++ libcgroup-0.36.2/src/api.c
@@ -772,6 +772,14 @@ int cgroup_init(void)
* Check if it is a duplicate
*/
duplicate = 0;
+
+ /*
+ * Ignore anything to do with systemd
+ */
+ if (strncmp(mntopt, "name=systemd",
+ strlen("name=systemd")) == 0)
+ continue;
+
for (j = 0; j < found_mnt; j++) {
if (strncmp(mntopt, cg_mount_table[j].name,
FILENAME_MAX) == 0) {