* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Remove file

attribute check already done in NtSetAttributesFile.
This commit is contained in:
Corinna Vinschen
2009-07-16 15:28:57 +00:00
parent fc261e53f0
commit 76cf56714e
2 changed files with 6 additions and 2 deletions

View File

@@ -845,8 +845,7 @@ fhandler_disk_file::fchmod (mode_t mode)
if (S_ISSOCK (mode))
pc |= (DWORD) FILE_ATTRIBUTE_SYSTEM;
status = NtSetAttributesFile (get_handle (), pc.file_attributes ()
?: FILE_ATTRIBUTE_NORMAL);
status = NtSetAttributesFile (get_handle (), pc.file_attributes ());
/* Correct NTFS security attributes have higher priority */
if (!pc.has_acls ())
{