[BusyBox] fsck_minix error message fix.

Gennady Feldman gfeldman at mail.com
Tue Nov 28 20:04:27 UTC 2000


I am attaching a really small fix for the error message which used to
show "unable to open '%s'" instead of more readable error message.

G.F.
-------------- next part --------------
--- fsck_minix.orig	Tue Nov 28 14:58:36 2000
+++ fsck_minix.c	Tue Nov 28 14:57:40 2000
@@ -1404,8 +1404,10 @@
 			die("need terminal for interactive repairs");
 	}
 	IN = open(device_name, repair ? O_RDWR : O_RDONLY);
-	if (IN < 0)
-		die("unable to open '%s'");
+	if (IN < 0){
+		printf("unable to open device '%s'.\n",device_name);
+		leave(8);		
+	}
 	for (count = 0; count < 3; count++)
 		sync();
 	read_superblock();


More information about the busybox mailing list