* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Filter
permissions throug umask on FAT or if ntsec is off.
This commit is contained in:
parent
3010b05f37
commit
2311f6b0e4
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user