]> sourceware.org Git - newlib-cygwin.git/commitdiff
* dir.cc (rmdir): Don't skip deleting fh in the ENOTEMPTY case.
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 21 Aug 2014 08:46:35 +0000 (08:46 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 21 Aug 2014 08:46:35 +0000 (08:46 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/dir.cc

index 4bf1b04c7dd498f8af037cffb3d933865a2f987a..c58f054da76a878c38dbc1991dcd095adf6e3c58 100644 (file)
@@ -1,3 +1,7 @@
+2014-08-21  Corinna Vinschen  <corinna@vinschen.de>
+
+       * dir.cc (rmdir): Don't skip deleting fh in the ENOTEMPTY case.
+
 2014-08-20  Corinna Vinschen  <corinna@vinschen.de>
 
        * tls_pbuf.h (tmp_pathbuf::tmp_pathbuf): Convert to inline method.
index b1035ba49197edec8605c62a7405384bd5a0d6c2..bdc1a859b28dfe1d238ced5214b4c1ec76bd03a1 100644 (file)
@@ -359,10 +359,7 @@ rmdir (const char *dir)
   else if (has_dot_last_component (dir, false))
     set_errno (EINVAL);
   else if (isdev_dev (fh->dev ()))
-    {
-      set_errno (ENOTEMPTY);
-      goto done;
-    }
+    set_errno (ENOTEMPTY);
   else if (!fh->rmdir ())
     res = 0;
 
This page took 0.032003 seconds and 5 git commands to generate.