*** empty log message ***

This commit is contained in:
Corinna Vinschen
2000-02-21 00:31:55 +00:00
parent 4859a55042
commit 486e3de201
2 changed files with 9 additions and 0 deletions

View File

@ -950,6 +950,10 @@ fhandler_disk_file::fstat (struct stat *buf)
buf->st_mode |= S_IFDIR;
if (! get_file_attribute (has_acls (), get_win32_name (), &buf->st_mode))
{
/* If read-only attribute is set, modify ntsec return value */
if (local.dwFileAttributes & FILE_ATTRIBUTE_READONLY)
buf->st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH);
buf->st_mode &= ~S_IFMT;
if (get_symlink_p ())
buf->st_mode |= S_IFLNK;