OSDN Git Service

* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Filter
authorcorinna <corinna>
Tue, 27 May 2003 07:44:25 +0000 (07:44 +0000)
committercorinna <corinna>
Tue, 27 May 2003 07:44:25 +0000 (07:44 +0000)
permissions throug umask on FAT or if ntsec is off.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc

index 76f1fc3..47523dc 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-27  Bill C. Riemers  <cygwin@docbill.net>
+
+       * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Filter
+       permissions throug umask on FAT or if ntsec is off.
+
 2003-05-26  Pierre Humblet  <pierre.humblet@ieee.org>
 
        * syscalls.cc (statfs): Call GetDiskFreeSpaceEx before GetDiskFreeSpace.
index 64e1a73..30e6785 100644 (file)
@@ -331,6 +331,9 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf, path_conv *pc,
 
       if (pc->exec_state () == is_executable)
        buf->st_mode |= STD_XBITS;
+
+      /* This fakes the permissions of all files to match the current umask. */
+      buf->st_mode &= ~(cygheap->umask);
     }
 
   /* The number of links to a directory includes the