mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Fix from Gennady Feldman for error msg
This commit is contained in:
parent
f361ac29b0
commit
77508b29fa
@ -1404,8 +1404,10 @@ extern int fsck_minix_main(int argc, char **argv)
|
|||||||
die("need terminal for interactive repairs");
|
die("need terminal for interactive repairs");
|
||||||
}
|
}
|
||||||
IN = open(device_name, repair ? O_RDWR : O_RDONLY);
|
IN = open(device_name, repair ? O_RDWR : O_RDONLY);
|
||||||
if (IN < 0)
|
if (IN < 0){
|
||||||
die("unable to open '%s'");
|
fprintf(stderr,"unable to open device '%s'.\n",device_name);
|
||||||
|
leave(8);
|
||||||
|
}
|
||||||
for (count = 0; count < 3; count++)
|
for (count = 0; count < 3; count++)
|
||||||
sync();
|
sync();
|
||||||
read_superblock();
|
read_superblock();
|
||||||
|
@ -1404,8 +1404,10 @@ extern int fsck_minix_main(int argc, char **argv)
|
|||||||
die("need terminal for interactive repairs");
|
die("need terminal for interactive repairs");
|
||||||
}
|
}
|
||||||
IN = open(device_name, repair ? O_RDWR : O_RDONLY);
|
IN = open(device_name, repair ? O_RDWR : O_RDONLY);
|
||||||
if (IN < 0)
|
if (IN < 0){
|
||||||
die("unable to open '%s'");
|
fprintf(stderr,"unable to open device '%s'.\n",device_name);
|
||||||
|
leave(8);
|
||||||
|
}
|
||||||
for (count = 0; count < 3; count++)
|
for (count = 0; count < 3; count++)
|
||||||
sync();
|
sync();
|
||||||
read_superblock();
|
read_superblock();
|
||||||
|
Loading…
Reference in New Issue
Block a user