OSDN Git Service

* fhandler_disk_file.cc (fhandler_disk_file::fstat): Minor logic cleanup.
authorcgf <cgf>
Tue, 28 May 2002 02:00:55 +0000 (02:00 +0000)
committercgf <cgf>
Tue, 28 May 2002 02:00:55 +0000 (02:00 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc

index 613fdb5..afd659f 100644 (file)
@@ -1,5 +1,10 @@
 2002-05-27  Christopher Faylor  <cgf@redhat.com>
 
+       * fhandler_disk_file.cc (fhandler_disk_file::fstat): Minor logic
+       cleanup.
+
+2002-05-27  Christopher Faylor  <cgf@redhat.com>
+
        * autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro.
        (LoadFuncEx2): Adapted from LoadFuncEx.  Provides control of return
        value for nonexistent function.
index 5a1e937..aa6b50d 100644 (file)
@@ -143,9 +143,7 @@ fhandler_disk_file::fstat (struct __stat64 *buf, path_conv *pc)
 
   if (query_open_already && strncasematch (pc->volname (), "FAT", 3))
     oret = 0;
-  else if ((oret = open (pc, open_flags, 0)))
-    /* ok */;
-  else
+  else if (!(oret = open (pc, open_flags, 0)))
     {
       int ntsec_atts = 0;
       /* If we couldn't open the file, try a "query open" with no permissions.