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
Jean-Pierre André 2013-02-09 15:01:36 +01:00
parent c72b569da1
commit c73b805062
1 changed files with 5 additions and 0 deletions

View File

@ -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;