]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Revert "bionic: Replace rindex by strrchr"
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 23 Jan 2014 19:03:05 +0000 (13:03 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 23 Jan 2014 19:03:05 +0000 (13:03 -0600)
This reverts commit 86f0eb65a0abc651c656ff602b823ba693f675c5.

src/lxc/cgroup.c

index fc23a066399d90e3fc750c5c733ae8dc4c4f6955..49f1ba1f8f43ee9dfd8639a97154ccbd4090d03b 100644 (file)
@@ -780,7 +780,7 @@ static void setup_cpuset_if_needed(char **subsystems, char *path)
        parentpath = strdup(path);
        if (!parentpath)
                return;
-       if ((p = strrchr(parentpath, '/')))
+       if ((p = rindex(parentpath, '/')))
                *p = '\0';
        v = get_value(parentpath, "cpuset.mems");
        set_value(path, "cpuset.mems", v);