mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Refuse to perform file info from STDIN.
This commit is contained in:
parent
8a83741c32
commit
fca5d4232c
2 changed files with 5 additions and 3 deletions
3
main.c
3
main.c
|
|
@ -654,6 +654,9 @@ int main(int argc, char *argv[])
|
|||
if (control.infile && (strcmp(control.infile, "-") == 0))
|
||||
control.flags |= FLAG_STDIN;
|
||||
|
||||
if (INFO && STDIN)
|
||||
failure("Will not get file info from STDIN\n");
|
||||
|
||||
if (control.outname && (strcmp(control.outname, "-") == 0)) {
|
||||
control.flags |= FLAG_STDOUT;
|
||||
control.msgout = stderr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue