[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] Re: fsck_minix error message fix
From:       Gennady Feldman <gfeldman () mail ! com>
Date:       2000-11-28 20:46:21
[Download RAW message or body]

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@lbl.gov>

["fsck_minix.diff" (text/plain)]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic