summaryrefslogtreecommitdiff
path: root/Build/source/texk/seetexk/dviselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/seetexk/dviselect.c')
-rw-r--r--Build/source/texk/seetexk/dviselect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/texk/seetexk/dviselect.c b/Build/source/texk/seetexk/dviselect.c
index 19408b27dca..00be970950b 100644
--- a/Build/source/texk/seetexk/dviselect.c
+++ b/Build/source/texk/seetexk/dviselect.c
@@ -506,7 +506,9 @@ Usage: %s [-s] [-i infile] [-o outfile] pages [...] [infile [outfile]]\n",
while (optind < argc) {
s = argv[optind++];
c = *s;
- if ((!isalpha(c) && c != '/') ||
+ if (!(isalpha(c) ||
+ c == '/' ||
+ (c == '.' && (s[1] == '/' || (s[1] == '.' && s[2] == '/')))) ||
((c == 'e' || c == 'o') && evenodd(s))) {
if (ParsePages(s))
goto usage;