summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-08-28 02:04:16 +0000
committerChristopher Faylor <me@cgf.cx>2003-08-28 02:04:16 +0000
commite2bc5017fa996b7de73821db61b14c2d552bfc06 (patch)
tree77813fcbca6d7f05cffeed9fb13637574c089408 /winsup/cygwin/path.cc
parentcc9f0cf0af2d2ef2beb508c8438ed938b775628f (diff)
downloadcygnal-e2bc5017fa996b7de73821db61b14c2d552bfc06.tar.gz
cygnal-e2bc5017fa996b7de73821db61b14c2d552bfc06.tar.bz2
cygnal-e2bc5017fa996b7de73821db61b14c2d552bfc06.zip
* syscalls.cc (mount): Don't check win32_path when doing cygdrive mount.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 15b3f861e..26b6aa82f 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -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);