* path.cc (normalize_posix_path): Don't treat '//' specially since newer

versions of bash now get this right.
This commit is contained in:
Christopher Faylor 2005-05-07 21:06:08 +00:00
parent bbb3381289
commit 3f6494e216
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-05-07 Christopher Faylor <cgf@timesys.com>
* path.cc (normalize_posix_path): Don't treat '//' specially since
newer versions of bash now get this right.
2005-05-07 Christopher Faylor <cgf@timesys.com>
* devices.cc: Regenerate with correct name for dev_netdrive_storage.

View File

@ -21,6 +21,7 @@ details. */
#define CYGTLS_INITIALIZED 0x43227
#define CYGTLS_EXCEPTION (0x43227 + true)
#define CYGTLSMAGIC "D0Ub313v31nm&G1c?";
#ifndef CYG_MAX_PATH
# define CYG_MAX_PATH 260

View File

@ -235,7 +235,7 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
*tail++ = '/';
}
/* Two leading /'s? If so, preserve them. */
else if (isslash (src[1]) && src[2] && !isslash (src[2]))
else if (isslash (src[1]) && !isslash (src[2]))
{
*tail++ = '/';
*tail++ = '/';