Refuse to perform file info from STDIN.

This commit is contained in:
ckolivas 2011-03-15 09:56:45 +11:00
parent 8a83741c32
commit fca5d4232c
2 changed files with 5 additions and 3 deletions

3
main.c
View file

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