Rejected reading a volume from stdin in ntfsclone
Reading a volume must be done in a seekable way. Better throw a proper error.edge.strict_endians
parent
c72b569da1
commit
c73b805062
|
@ -477,6 +477,11 @@ static void parse_options(int argc, char **argv)
|
|||
usage();
|
||||
}
|
||||
|
||||
if (!opt.restore_image && !strcmp(opt.volume, "-")) {
|
||||
err_printf("Only special images can be read from standard input\n");
|
||||
usage();
|
||||
}
|
||||
|
||||
if (opt.metadata && opt.save_image) {
|
||||
opt.metadata_image++;
|
||||
opt.save_image = 0;
|
||||
|
|
Loading…
Reference in New Issue