diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/mingw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index 84522d3ea..378c4001f 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -448,6 +448,11 @@ static int do_lstat(int follow, const char *file_name, struct mingw_stat *buf) | |||
448 | (((ino_t)hdata.nFileIndexHigh)<<32); | 448 | (((ino_t)hdata.nFileIndexHigh)<<32); |
449 | buf->st_nlink = S_ISDIR(buf->st_mode) ? 2 : hdata.nNumberOfLinks; | 449 | buf->st_nlink = S_ISDIR(buf->st_mode) ? 2 : hdata.nNumberOfLinks; |
450 | } | 450 | } |
451 | else { | ||
452 | buf->st_uid = 0; | ||
453 | buf->st_gid = 0; | ||
454 | buf->st_mode &= ~(S_IROTH|S_IWOTH|S_IXOTH); | ||
455 | } | ||
451 | CloseHandle(fh); | 456 | CloseHandle(fh); |
452 | #endif | 457 | #endif |
453 | 458 | ||