*** empty log message ***
This commit is contained in:
parent
4859a55042
commit
486e3de201
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Feb 18 21:31:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler.cc (fhandler_disk_file::fstat): Modify get_file_attribute
|
||||||
|
return value if FILE_ATTRIBUTE_READONLY is set.
|
||||||
|
|
||||||
Mon Feb 7 16:50:44 2000 Christopher Faylor <cgf@cygnus.com>
|
Mon Feb 7 16:50:44 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* Makefile.in: cygrun needs libshell32.a.
|
* Makefile.in: cygrun needs libshell32.a.
|
||||||
|
|
|
@ -950,6 +950,10 @@ fhandler_disk_file::fstat (struct stat *buf)
|
||||||
buf->st_mode |= S_IFDIR;
|
buf->st_mode |= S_IFDIR;
|
||||||
if (! get_file_attribute (has_acls (), get_win32_name (), &buf->st_mode))
|
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;
|
buf->st_mode &= ~S_IFMT;
|
||||||
if (get_symlink_p ())
|
if (get_symlink_p ())
|
||||||
buf->st_mode |= S_IFLNK;
|
buf->st_mode |= S_IFLNK;
|
||||||
|
|
Loading…
Reference in New Issue