summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-18 01:44:41 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-18 01:44:41 +0100
commitd2a30975827b3447ca0fd5a2c06ec1ff15ce7f0f (patch)
tree65d593f4f9d129354ab081b6476ce46a596dd7a6 /src/shared/util.c
parentd54110d11d5ea3381cfdd129356b91669b547216 (diff)
systemctl: add new "get-cgroup-attr" to query current cgroup attribute value
Also adds a pair of bus calls for this to the daemon.
Diffstat (limited to 'src/shared/util.c')
-rw-r--r--src/shared/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index d5de59fce9..f75a81c605 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -641,6 +641,9 @@ int read_full_file(const char *fn, char **contents, size_t *size) {
_cleanup_free_ char *buf = NULL;
struct stat st;
+ assert(fn);
+ assert(contents);
+
f = fopen(fn, "re");
if (!f)
return -errno;