[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] fsck_minix error message fix.
From: Gennady Feldman <gfeldman () mail ! com>
Date: 2000-11-28 20:04:27
[Download RAW message or body]
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.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){
+ printf("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