[BusyBox] Re: fsck_minix error message fix

Gennady Feldman gfeldman at mail.com
Tue Nov 28 20:46:21 UTC 2000


Hello Larry.

    Actually yes fprintf(stderr,...) is a better fix. Thanx.

G.F.

Larry Doolittle wrote:

> Gennady -
>
> Shouldn't that printf(..) be fprintf(stderr,..)?
>
>      - Larry Doolittle   <LRDoolittle at lbl.gov>
-------------- 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){
+		fprintf(stderr,"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