chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
524daa8
)
cgroup: fix error message
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 6 Jan 2015 00:03:23 +0000
(19:03 -0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 6 Jan 2015 00:04:10 +0000
(19:04 -0500)
systemd[1]: Failed to set memory.limit_in_bytes on : Invalid argument
src/core/cgroup.c
patch
|
blob
|
history
diff --git
a/src/core/cgroup.c
b/src/core/cgroup.c
index 3d5d8898b69bd323532277cb81d0d28103b739de..d6156c3924dbc8c281669d328e3bd2efc6ef1719 100644
(file)
--- a/
src/core/cgroup.c
+++ b/
src/core/cgroup.c
@@
-295,6
+295,9
@@
void cgroup_context_apply(CGroupContext *c, CGroupControllerMask mask, const cha
/* Some cgroup attributes are not support on the root cgroup,
* hence silently ignore */
is_root = isempty(path) || path_equal(path, "/");
+ if (is_root)
+ /* Make sure we don't try to display messages with an empty path. */
+ path = "/";
/* We generally ignore errors caused by read-only mounted
* cgroup trees (assuming we are running in a container then),