OSDN Git Service

2001-09-24 Ben Elliston <bje@redhat.com>
authorbje <bje>
Mon, 24 Sep 2001 06:54:48 +0000 (06:54 +0000)
committerbje <bje>
Mon, 24 Sep 2001 06:54:48 +0000 (06:54 +0000)
* gloss.cxx (do_sys_fstat): Clear error result on success.

sid/component/gloss/ChangeLog
sid/component/gloss/gloss.cxx

index cfd038f..2cbca12 100644 (file)
@@ -1,3 +1,7 @@
+2001-09-24  Ben Elliston  <bje@redhat.com>
+
+       * gloss.cxx (do_sys_fstat): Clear error result on success.
+
 2001-09-04  Ben Elliston  <bje@redhat.com>
 
        * gloss.h (do_sys_fstat): Declare.
index a975ecc..7a7852b 100644 (file)
@@ -836,8 +836,11 @@ gloss32::do_sys_fstat()
       set_host_error_result (errno);
       set_int_result (-1);
     }
-
-  set_int_result (::fstat (handle, &st));
+  else
+    {
+      set_error_result (0);
+      set_int_result (rc);
+    }
 
   // Populate struct stat in target memory.
   set_halfword (ptr, st.st_dev);