From 86f0eb65a0abc651c656ff602b823ba693f675c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Wed, 22 Jan 2014 21:25:05 -0500 Subject: [PATCH] bionic: Replace rindex by strrchr MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- src/lxc/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index 49f1ba1f8..fc23a0663 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -780,7 +780,7 @@ static void setup_cpuset_if_needed(char **subsystems, char *path) parentpath = strdup(path); if (!parentpath) return; - if ((p = rindex(parentpath, '/'))) + if ((p = strrchr(parentpath, '/'))) *p = '\0'; v = get_value(parentpath, "cpuset.mems"); set_value(path, "cpuset.mems", v); -- 2.47.3