mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
etdump: Fix the file name included in the could not open error message
If only one file is passed, this reads the terminating NULL and so prints (null). If multiple files are passed then this always prints the second file, which may or may not exist (and will be particularly confusing if it does exist since the output will include the dump of the second file). MFC after: 1 week
This commit is contained in:
parent
90c5fd4875
commit
340cebe990
|
@ -262,7 +262,7 @@ main(int argc, char **argv)
|
|||
} else {
|
||||
iso = fopen(argv[i], "r");
|
||||
if (iso == NULL)
|
||||
err(1, "could not open %s", argv[1]);
|
||||
err(1, "could not open %s", argv[i]);
|
||||
}
|
||||
dump_eltorito(iso, argv[i], outfile, outputter);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue