Sergey Ivanov <seriv@parkheights.dyndns.org>
* path.cc (mount_info::read_cygdrive_info_from_registry): Default /cygdrive to binary mode.
This commit is contained in:
parent
2a6e122363
commit
98fc1a6dfe
|
@ -1,8 +1,14 @@
|
||||||
|
2004-09-24 Christopher Faylor <cgf@timesys.com>
|
||||||
|
Sergey Ivanov <seriv@parkheights.dyndns.org>
|
||||||
|
|
||||||
|
* path.cc (mount_info::read_cygdrive_info_from_registry): Default
|
||||||
|
/cygdrive to binary mode.
|
||||||
|
|
||||||
2004-09-22 Pierre Humblet <pierre.humblet@ieee.org>
|
2004-09-22 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
* path.cc (normalize_win32_path): Only look for : in second position.
|
* path.cc (normalize_win32_path): Only look for : in second position.
|
||||||
Avoid infinite loop with names starting in double dots.
|
Avoid infinite loop with names starting in double dots.
|
||||||
(mount_info::conv_to_win32_path): Do not worry about a trailing dot.
|
(mount_info::conv_to_win32_path): Do not worry about a trailing dot.
|
||||||
(hash_path_name): Ditto.
|
(hash_path_name): Ditto.
|
||||||
|
|
||||||
2004-09-20 Christopher Faylor <cgf@timesys.com>
|
2004-09-20 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
|
@ -1937,7 +1937,7 @@ mount_info::read_cygdrive_info_from_registry ()
|
||||||
if (r2.get_string (CYGWIN_INFO_CYGDRIVE_PREFIX, cygdrive,
|
if (r2.get_string (CYGWIN_INFO_CYGDRIVE_PREFIX, cygdrive,
|
||||||
sizeof (cygdrive), ""))
|
sizeof (cygdrive), ""))
|
||||||
strcpy (cygdrive, CYGWIN_INFO_CYGDRIVE_DEFAULT_PREFIX);
|
strcpy (cygdrive, CYGWIN_INFO_CYGDRIVE_DEFAULT_PREFIX);
|
||||||
cygdrive_flags = r2.get_int (CYGWIN_INFO_CYGDRIVE_FLAGS, MOUNT_CYGDRIVE);
|
cygdrive_flags = r2.get_int (CYGWIN_INFO_CYGDRIVE_FLAGS, MOUNT_CYGDRIVE | MOUNT_BINARY);
|
||||||
slashify (cygdrive, cygdrive, 1);
|
slashify (cygdrive, cygdrive, 1);
|
||||||
cygdrive_len = strlen (cygdrive);
|
cygdrive_len = strlen (cygdrive);
|
||||||
}
|
}
|
||||||
|
@ -1945,7 +1945,7 @@ mount_info::read_cygdrive_info_from_registry ()
|
||||||
{
|
{
|
||||||
/* Fetch user cygdrive_flags from registry; returns MOUNT_CYGDRIVE on
|
/* Fetch user cygdrive_flags from registry; returns MOUNT_CYGDRIVE on
|
||||||
error. */
|
error. */
|
||||||
cygdrive_flags = r.get_int (CYGWIN_INFO_CYGDRIVE_FLAGS, MOUNT_CYGDRIVE);
|
cygdrive_flags = r.get_int (CYGWIN_INFO_CYGDRIVE_FLAGS, MOUNT_CYGDRIVE | MOUNT_BINARY);
|
||||||
slashify (cygdrive, cygdrive, 1);
|
slashify (cygdrive, cygdrive, 1);
|
||||||
cygdrive_len = strlen (cygdrive);
|
cygdrive_len = strlen (cygdrive);
|
||||||
}
|
}
|
||||||
|
@ -2052,7 +2052,7 @@ mount_info::get_cygdrive_info (char *user, char *system, char* user_flags,
|
||||||
/* Get the user flags, if appropriate */
|
/* Get the user flags, if appropriate */
|
||||||
if (res == ERROR_SUCCESS)
|
if (res == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
int flags = r.get_int (CYGWIN_INFO_CYGDRIVE_FLAGS, MOUNT_CYGDRIVE);
|
int flags = r.get_int (CYGWIN_INFO_CYGDRIVE_FLAGS, MOUNT_CYGDRIVE | MOUNT_BINARY);
|
||||||
strcpy (user_flags, (flags & MOUNT_BINARY) ? "binmode" : "textmode");
|
strcpy (user_flags, (flags & MOUNT_BINARY) ? "binmode" : "textmode");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2066,7 +2066,7 @@ mount_info::get_cygdrive_info (char *user, char *system, char* user_flags,
|
||||||
/* Get the system flags, if appropriate */
|
/* Get the system flags, if appropriate */
|
||||||
if (res2 == ERROR_SUCCESS)
|
if (res2 == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
int flags = r2.get_int (CYGWIN_INFO_CYGDRIVE_FLAGS, MOUNT_CYGDRIVE);
|
int flags = r2.get_int (CYGWIN_INFO_CYGDRIVE_FLAGS, MOUNT_CYGDRIVE | MOUNT_BINARY);
|
||||||
strcpy (system_flags, (flags & MOUNT_BINARY) ? "binmode" : "textmode");
|
strcpy (system_flags, (flags & MOUNT_BINARY) ? "binmode" : "textmode");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue