From: Ivana Hutarova Varekova Date: Tue, 26 Oct 2010 06:51:39 +0000 (+0200) Subject: cgroup_read_value_begin return value patch X-Git-Tag: v0.37~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1847b1b7f96ff56a1fc5e209b6f48cc1f66a346d;p=thirdparty%2Flibcgroup.git cgroup_read_value_begin return value patch there is a typo in cgroup_read_value_begin return value, this patch fixes it ---------------- EXAMPLE: OLD: $ cgget -g devices //CBSFxx/Zcz6 //CBSFxx/Zcz6: devices.list: a *:* rwm devices.deny: a *:* rwm devices.allow: a *:* rwm $ NEW: $ cgget -g devices //CBSFxx/Zcz6 //CBSFxx/Zcz6: devices.list: a *:* rwm devices.deny: devices.allow: $ Signed-off-by: Ivana Hutarova Varekova Signed-off-by: Jan Safranek Acked-by: Dhaval Giani --- diff --git a/src/api.c b/src/api.c index 6cd0185b..d8f67663 100644 --- a/src/api.c +++ b/src/api.c @@ -2895,7 +2895,7 @@ int cgroup_read_value_begin(const char *controller, const char *path, ret = ECGEOF; *handle = fp; - return 0; + return ret; }