* fhandler.cc (fhandler_base::open): Move handling FILE_ATTRIBUTE_NORMAL

back to its old place.  Or it to file_attributes instead of setting it.
This commit is contained in:
Corinna Vinschen 2008-04-25 16:59:41 +00:00
parent 703a42b96a
commit fccdf679f4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-04-25 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::open): Move handling FILE_ATTRIBUTE_NORMAL
back to its old place. Or it to file_attributes instead of setting it.
2008-04-25 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::open): *Only* handle SYSTEM and HIDDEN

View File

@ -539,7 +539,6 @@ fhandler_base::open (int flags, mode_t mode)
if (get_device () == FH_FS)
{
file_attributes = FILE_ATTRIBUTE_NORMAL;
/* Add the reparse point flag to native symlinks, otherwise we open the
target, not the symlink. This would break lstat. */
if (pc.is_rep_symlink ())
@ -556,6 +555,8 @@ fhandler_base::open (int flags, mode_t mode)
if (flags & O_CREAT)
{
file_attributes |= FILE_ATTRIBUTE_NORMAL;
/* If mode has no write bits set, we set the R/O attribute. */
if (!(mode & (S_IWUSR | S_IWGRP | S_IWOTH)))
file_attributes |= FILE_ATTRIBUTE_READONLY;