Displaying 1 result from an estimated 1 matches for "9470bcf".
Did you mean:
  927dbcf
  
2006 Aug 18
2
[patch] simplify nuke
...tems/klibc/.git maks
for the change:
maximilian attems:
      [klibc] simplify nuke
fixes boot failures due to unexpected error returns
 usr/utils/nuke.c |   20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)
diff --git a/usr/utils/nuke.c b/usr/utils/nuke.c
index 01b300f..9470bcf 100644
--- a/usr/utils/nuke.c
+++ b/usr/utils/nuke.c
@@ -101,18 +101,11 @@ static int nuke(const char *what)
 			/* It's a directory. */
 			err = nuke_dir(what);
 			if (!err)
-				err = rmdir(what) ? errno : err;
-		} else {
-			err = errno;
+				rmdir(what);
 		}
 	}
 
-	if (err) {
-		fprint...