summaryrefslogtreecommitdiff
path: root/Build/source/texk/seetexk/dviconcat.c
diff options
context:
space:
mode:
authorTakuji Tanaka <KXD02663@nifty.ne.jp>2017-06-11 14:50:50 +0000
committerTakuji Tanaka <KXD02663@nifty.ne.jp>2017-06-11 14:50:50 +0000
commite90cc27a70431541c2d1d4affba771b37f69c388 (patch)
tree1fd5ff55f44b1c5cf96a943b374c9011f10d6e73 /Build/source/texk/seetexk/dviconcat.c
parent8cada474755655a7cb468072de2ad1ab9f10a78e (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/dviconcat.c')
-rw-r--r--Build/source/texk/seetexk/dviconcat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Build/source/texk/seetexk/dviconcat.c b/Build/source/texk/seetexk/dviconcat.c
index d776e57a3b5..dad528e4806 100644
--- a/Build/source/texk/seetexk/dviconcat.c
+++ b/Build/source/texk/seetexk/dviconcat.c
@@ -437,6 +437,8 @@ usage:
if (optind >= argc) {
if (!isatty(fileno(stdin)))
SET_BINARY(fileno(stdin));
+ else
+ goto usage;
doit("`stdin'", stdin);
}
else {
@@ -445,6 +447,8 @@ usage:
if (*s == '-' && s[1] == 0) {
if (!isatty(fileno(stdin)))
SET_BINARY(fileno(stdin));
+ else
+ goto usage;
doit("`stdin'", stdin);
}
else if ((f = fopen(s, FOPEN_RBIN_MODE)) == NULL) {