Skip to content

Commit

Permalink
Merge pull request #2874 from stgraber/master
Browse files Browse the repository at this point in the history
Fix existing mount target check
  • Loading branch information
brauner committed Feb 20, 2019
2 parents 1edf8fa + d8bc14a commit ec769e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/lxccontainer.c
Expand Up @@ -4973,7 +4973,7 @@ static int create_mount_target(const char *dest, mode_t st_mode)

if (ret == 0)
TRACE("Created mount target \"%s\"", dest);
else if (ret < 0 && ret != EEXIST) {
else if (ret < 0 && errno != EEXIST) {
SYSERROR("Failed to create mount target \"%s\"", dest);
return -1;
}
Expand Down

0 comments on commit ec769e5

Please sign in to comment.