* errno.cc (errmap): Map ERROR_BAD_NETPATH to new errno ENOSHARE.

(_sys_errlist): Add entry for ENOSHARE.
        (strerror): Add case for ENOSHARE.
        * syscalls.cc (stat_worker): Check for errno ENOSHARE.
This commit is contained in:
Corinna Vinschen
2000-05-03 16:11:11 +00:00
parent b96fca8c5a
commit 07a135a6bf
3 changed files with 15 additions and 3 deletions

View File

@@ -1030,7 +1030,8 @@ stat_worker (const char *caller, const char *name, struct stat *buf,
buf->st_nlink =
(dtype == DRIVE_REMOTE ? 1 : num_entries (real_path.get_win32 ()));
}
else if (atts != -1 || (!oret && get_errno () != ENOENT))
else if (atts != -1 || (!oret && get_errno () != ENOENT
&& get_errno () != ENOSHARE))
{
/* Unfortunately, the above open may fail if the file exists, though.
So we have to care for this case here, too. */