coverity: #1425742

fix error condition check Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 3a29fb55
......@@ -545,7 +545,7 @@ int ovl_mount(struct lxc_storage *bdev)
upper++;
/* if delta doesn't yet exist, create it */
ret = mkdir_p(upper, 0755) < 0;
ret = mkdir_p(upper, 0755);
if (ret < 0 && errno != EEXIST) {
SYSERROR("Failed to create directory \"%s\"", upper);
free(dup);
......
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