From adf41838bb4d33efc8069f9590f8e7ccc3978295 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 28 Aug 2020 11:08:24 +0100 Subject: ash, ls: improve support for 'c:path' Revert commit 249f68e3c (win32: append '/' to bare drive name in opendir). Instead add better handling for paths of the form 'c:path' to ls and expmeta() in ash. Adds 64 bytes. --- win32/mingw.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'win32') diff --git a/win32/mingw.c b/win32/mingw.c index 051dc3c0d..16e103b54 100644 --- a/win32/mingw.c +++ b/win32/mingw.c @@ -1528,21 +1528,6 @@ size_t FAST_FUNC remove_cr(char *p, size_t len) return j; } -#undef opendir -DIR *mingw_opendir(const char *path) -{ - char name[4]; - - if (isalpha(path[0]) && path[1] == ':' && path[2] == '\0') { - strcpy(name, path); - name[2] = '/'; - name[3] = '\0'; - path = name; - } - - return opendir(path); -} - off_t mingw_lseek(int fd, off_t offset, int whence) { HANDLE h = (HANDLE)_get_osfhandle(fd); -- cgit v1.2.3-55-g6feb