]> git.proxmox.com Git - mirror_lxc.git/commitdiff
bionic: Replace rindex by strrchr
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 23 Jan 2014 02:25:05 +0000 (21:25 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 23 Jan 2014 02:25:29 +0000 (21:25 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgroup.c

index 49f1ba1f8f43ee9dfd8639a97154ccbd4090d03b..fc23a066399d90e3fc750c5c733ae8dc4c4f6955 100644 (file)
@@ -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);