* 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:
Corinna Vinschen
2003-05-27 07:44:26 +00:00
parent 3010b05f37
commit 2311f6b0e4
2 changed files with 8 additions and 0 deletions

View 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