]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
rundir: Fix crash with privileged containers
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 19 Feb 2014 16:47:03 +0000 (11:47 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 19 Feb 2014 16:52:01 +0000 (11:52 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/utils.c

index c5c450dc999a8f09ba4c93b3b364dfe744502779..52e4c86f919ddfca7d532705fdeae761e4b03499 100644 (file)
@@ -382,7 +382,7 @@ char *get_rundir()
        const char *homedir;
 
        if (geteuid() == 0) {
-               rundir = RUNTIME_PATH;
+               rundir = strdup(RUNTIME_PATH);
                return rundir;
        }