aboutsummaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorGravatar Matt Kraai <kraai@debian.org>2000-09-27 02:43:35 +0000
committerGravatar Matt Kraai <kraai@debian.org>2000-09-27 02:43:35 +0000
commitbbaef66b3f99213f06adf04df6b3e5e61278d75b (patch)
tree3838db4158e8e05a753fffd6e87cbbc7946425ad /console-tools
parente0bcce09baff576b1b16b3ffe780b6d91c7710c2 (diff)
downloadbusybox-bbaef66b3f99213f06adf04df6b3e5e61278d75b.tar.gz
busybox-bbaef66b3f99213f06adf04df6b3e5e61278d75b.tar.bz2
Consolidate handling of some fopen failures.
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/loadacm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c
index 826c2a33f..f57737925 100644
--- a/console-tools/loadacm.c
+++ b/console-tools/loadacm.c
@@ -330,10 +330,7 @@ void saveoldmap(int fd, char *omfil)
}
#endif
- if ((fp = fopen(omfil, "w")) == NULL) {
- perror(omfil);
- exit(1);
- }
+ fp = xfopen(omfil, "w");
#ifdef GIO_UNISCRNMAP
if (is_old_map) {
#endif