aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-12-12 23:51:43 +0000
committerEric Andersen <andersen@codepoet.org>2000-12-12 23:51:43 +0000
commit77508b29fa63d99136fc09f00c5a2addd6331b4c (patch)
tree60c6890f5f3b8330791038faecb1bf56a8423ab1
parentf361ac29b0f94c85a8aeb1185301f8197f64fe42 (diff)
downloadbusybox-77508b29fa63d99136fc09f00c5a2addd6331b4c.tar.gz
Fix from Gennady Feldman for error msg
-rw-r--r--fsck_minix.c6
-rw-r--r--util-linux/fsck_minix.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/fsck_minix.c b/fsck_minix.c
index 9ebabe9e5..b35e6bb07 100644
--- a/fsck_minix.c
+++ b/fsck_minix.c
@@ -1404,8 +1404,10 @@ extern int fsck_minix_main(int argc, char **argv)
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();
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 9ebabe9e5..b35e6bb07 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -1404,8 +1404,10 @@ extern int fsck_minix_main(int argc, char **argv)
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();