Unverified Commit ec769e5b by Christian Brauner Committed by GitHub

Merge pull request #2874 from stgraber/master

Fix existing mount target check
parents 1edf8fa4 d8bc14a7
......@@ -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;
}
......
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