OSDN Git Service

* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Remove file
authorcorinna <corinna>
Thu, 16 Jul 2009 15:28:56 +0000 (15:28 +0000)
committercorinna <corinna>
Thu, 16 Jul 2009 15:28:56 +0000 (15:28 +0000)
attribute check already done in NtSetAttributesFile.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc

index 0a1b4ed..ec9228a 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-16  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Remove file
+       attribute check already done in NtSetAttributesFile.
+
 2009-07-15  Corinna Vinschen  <corinna@vinschen.de>
 
        * globals.cc: Reorder constant UNICODE_STRINGs for clarity.
index e94422a..f2dd1ea 100644 (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 ())
     {