* dir.cc (rmdir): Don't skip deleting fh in the ENOTEMPTY case.
This commit is contained in:
parent
854e058b56
commit
88fa851784
@ -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>
|
2014-08-20 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* tls_pbuf.h (tmp_pathbuf::tmp_pathbuf): Convert to inline method.
|
* tls_pbuf.h (tmp_pathbuf::tmp_pathbuf): Convert to inline method.
|
||||||
|
@ -359,10 +359,7 @@ rmdir (const char *dir)
|
|||||||
else if (has_dot_last_component (dir, false))
|
else if (has_dot_last_component (dir, false))
|
||||||
set_errno (EINVAL);
|
set_errno (EINVAL);
|
||||||
else if (isdev_dev (fh->dev ()))
|
else if (isdev_dev (fh->dev ()))
|
||||||
{
|
|
||||||
set_errno (ENOTEMPTY);
|
set_errno (ENOTEMPTY);
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
else if (!fh->rmdir ())
|
else if (!fh->rmdir ())
|
||||||
res = 0;
|
res = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user