Use bb_xopen

This commit is contained in:
Glenn L McGrath
2003-12-20 06:00:08 +00:00
parent 236e93d133
commit 02e0355504
4 changed files with 6 additions and 19 deletions

View File

@@ -51,11 +51,7 @@ int dumpkmap_main(int argc, char **argv)
bb_show_usage();
}
fd = open(CURRENT_VC, O_RDWR);
if (fd < 0) {
bb_perror_msg("Error opening " CURRENT_VC);
return EXIT_FAILURE;
}
fd=bb_xopen(CURRENT_VC, O_RDWR);
write(1, magic, 7);