diff options
author | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2017-06-11 14:50:50 +0000 |
---|---|---|
committer | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2017-06-11 14:50:50 +0000 |
commit | e90cc27a70431541c2d1d4affba771b37f69c388 (patch) | |
tree | 1fd5ff55f44b1c5cf96a943b374c9011f10d6e73 /Build/source/texk/seetexk/dvibook.c | |
parent | 8cada474755655a7cb468072de2ad1ab9f10a78e (diff) |
texk/seetexk: Show usage and exit if stdin is set to a keyboard
git-svn-id: svn://tug.org/texlive/trunk@44561 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/seetexk/dvibook.c')
-rw-r--r-- | Build/source/texk/seetexk/dvibook.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Build/source/texk/seetexk/dvibook.c b/Build/source/texk/seetexk/dvibook.c index 80a16e1266c..747952c1657 100644 --- a/Build/source/texk/seetexk/dvibook.c +++ b/Build/source/texk/seetexk/dvibook.c @@ -446,6 +446,8 @@ Usage: %s [-s signature] [-q] [-i infile] [-o outfile] [infile [outfile]]\n", inf = stdin; if (!isatty(fileno(inf))) SET_BINARY(fileno(inf)); + else + goto usage; } else if ((inf = fopen(DVIFileName, FOPEN_RBIN_MODE)) == 0) error(1, -1, "cannot read %s", DVIFileName); if (outname == NULL) { |