* dir.cc (rmdir): Eliminate nonsensical code.

* fork.cc (fork): Move exit debug_printf to last statement.
This commit is contained in:
Christopher Faylor
2005-10-21 14:08:19 +00:00
parent 09968b6d27
commit a591389de3
3 changed files with 8 additions and 5 deletions

View File

@@ -305,10 +305,7 @@ rmdir (const char *dir)
if (fh->error ())
{
debug_printf ("got %d error from build_fh_name", fh->error ());
if (fh->error ())
set_errno (EROFS);
else
set_errno (fh->error ());
set_errno (fh->error ());
}
else if (!fh->rmdir ())
res = 0;