Fix existing mount target check

parent 1edf8fa4
...@@ -4973,7 +4973,7 @@ static int create_mount_target(const char *dest, mode_t st_mode) ...@@ -4973,7 +4973,7 @@ static int create_mount_target(const char *dest, mode_t st_mode)
if (ret == 0) if (ret == 0)
TRACE("Created mount target \"%s\"", dest); 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); SYSERROR("Failed to create mount target \"%s\"", dest);
return -1; 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