[BusyBox] fsck_minix error message fix.

Erik Andersen andersen at lineo.com
Tue Dec 12 23:51:39 UTC 2000


On Tue Nov 28, 2000 at 03:04:27PM -0500, Gennady Feldman wrote:
> 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.

> --- 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();

I just applied your fix -- it had gotten lost in my overflowing inbox...

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list