* syscalls.cc (mount): Don't check win32_path when doing cygdrive mount.

This commit is contained in:
Christopher Faylor
2003-08-28 02:04:16 +00:00
parent cc9f0cf0af
commit e2bc5017fa
9 changed files with 72 additions and 44 deletions

View File

@ -2592,8 +2592,7 @@ mount (const char *win32_path, const char *posix_path, unsigned flags)
{
int res = -1;
if (check_null_empty_str_errno (win32_path)
|| check_null_empty_str_errno (posix_path))
if (check_null_empty_str_errno (posix_path))
/* errno set */;
else if (strpbrk (posix_path, "\\:"))
set_errno (EINVAL);
@ -2605,7 +2604,7 @@ mount (const char *win32_path, const char *posix_path, unsigned flags)
res = mount_table->write_cygdrive_info_to_registry (posix_path, flags);
win32_path = NULL;
}
else
else if (!check_null_empty_str_errno (win32_path))
res = mount_table->add_item (win32_path, posix_path, flags, TRUE);
syscall_printf ("%d = mount (%s, %s, %p)", res, win32_path, posix_path, flags);