* fcntl.cc (fcntl_worker): Protect with a 'myfault'.
* path.cc (normalize_posix_path): Treat X:/ as Win32 path, too. * smallprint.cc (__wrn): New static function. (__small_vswprintf): New function to generate WCHAR strings. (__small_swprintf): Ditto. * winsup.h (__small_swprintf): Declare. (__small_vswprintf): Declare.
This commit is contained in:
@ -253,7 +253,7 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
|
||||
char *dst_start = dst;
|
||||
syscall_printf ("src %s", src);
|
||||
|
||||
if ((isdrive (src) && src[2] == '\\') || *src == '\\')
|
||||
if ((isdrive (src) && isdirsep (src[2])) || *src == '\\')
|
||||
goto win32_path;
|
||||
|
||||
tail = dst;
|
||||
|
Reference in New Issue
Block a user