From 608baa209c590cc20af045d8bbff1b4d95f8c67c Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sat, 27 Apr 2002 19:17:25 +0000 Subject: [PATCH] Removed S_IFREG for files. svn path=/trunk/; revision=2881 --- reactos/lib/msvcrt/sys_stat/fstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/msvcrt/sys_stat/fstat.c b/reactos/lib/msvcrt/sys_stat/fstat.c index 2eeb17050bd..c880b46644c 100644 --- a/reactos/lib/msvcrt/sys_stat/fstat.c +++ b/reactos/lib/msvcrt/sys_stat/fstat.c @@ -44,7 +44,7 @@ int _fstat(int fd, struct stat *statbuf) statbuf->st_dev = fd; statbuf->st_size = FileInformation.nFileSizeLow; - statbuf->st_mode = S_IREAD | S_IFREG; + statbuf->st_mode = S_IREAD; if (FileInformation.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) statbuf->st_mode |= S_IFDIR; if (!(FileInformation.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) statbuf->st_mode |= S_IWRITE; return 0; @@ -73,7 +73,7 @@ __int64 _fstati64 (int fd, struct _stati64* statbuf) statbuf->st_dev = fd; statbuf->st_size = (((__int64)FileInformation.nFileSizeHigh) << 32) + FileInformation.nFileSizeLow; - statbuf->st_mode = S_IREAD | S_IFREG; + statbuf->st_mode = S_IREAD; if (FileInformation.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) statbuf->st_mode |= S_IFDIR; if (!(FileInformation.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) statbuf->st_mode |= S_IWRITE; return 0;