* sigproc.cc (_pinfo::set_ctty): Move function
* pinfo.cc (_pinfo::set_ctty): to here. * fhandler_mem.cc (fhandler_dev_mem::fstat): Don't fill out structure if this is an on-disk device rather than an "auto" device. * fhandler_raw.cc (fhandler_dev_raw::fstat): Ditto. * path.cc (normalize_posix_path): Don't treat a standalone '//' as introducing a UNC path. (normalize_win32_path): Ditto.
This commit is contained in:
@ -230,7 +230,7 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
|
||||
*tail++ = '/';
|
||||
}
|
||||
/* Two leading /'s? If so, preserve them. */
|
||||
else if (isslash (src[1]) && !isslash (src[2]))
|
||||
else if (isslash (src[1]) && src[2] && !isslash (src[2]))
|
||||
{
|
||||
*tail++ = '/';
|
||||
*tail++ = '/';
|
||||
@ -1023,7 +1023,7 @@ normalize_win32_path (const char *src, char *dst, char *&tail)
|
||||
bool beg_src_slash = isdirsep (src[0]);
|
||||
|
||||
tail = dst;
|
||||
if (beg_src_slash && isdirsep (src[1]))
|
||||
if (beg_src_slash && isdirsep (src[1]) && src[2])
|
||||
{
|
||||
*tail++ = '\\';
|
||||
src++;
|
||||
|
Reference in New Issue
Block a user