diff options
Diffstat (limited to 'futility/cmd_load_fmap.c')
-rw-r--r-- | futility/cmd_load_fmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/futility/cmd_load_fmap.c b/futility/cmd_load_fmap.c index 474ff56e..220070a2 100644 --- a/futility/cmd_load_fmap.c +++ b/futility/cmd_load_fmap.c @@ -144,10 +144,11 @@ static int do_load_fmap(int argc, char *argv[]) infile = argv[optind++]; /* okay, let's do it ... */ - if (outfile) - futil_copy_file_or_die(infile, outfile); - else + if (!outfile) outfile = infile; + else + if (futil_copy_file(infile, outfile) < 0) + exit(1); errorcnt |= futil_open_and_map_file(outfile, &fd, FILE_RW, &buf, &len); |