Unverified Commit 10b15ed0 by Christian Brauner Committed by Stéphane Graber

log: restore non-local value

Fixes: Coverity 1461734. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent dfa49f0d
......@@ -485,10 +485,9 @@ static int build_dir(const char *name)
*p = '\0';
ret = lxc_unpriv(mkdir(n, 0755));
*p = '/';
if (ret && errno != EEXIST)
return log_error_errno(-errno, errno, "Failed to create directory \"%s\"", n);
*p = '/';
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment