systemctl: add new "get-cgroup-attr" to query current cgroup attribute value
Also adds a pair of bus calls for this to the daemon.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user