summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/tex-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/tex-file.c')
-rw-r--r--Build/source/texk/kpathsea/tex-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/tex-file.c b/Build/source/texk/kpathsea/tex-file.c
index a748920d250..7dc62cdb5c9 100644
--- a/Build/source/texk/kpathsea/tex-file.c
+++ b/Build/source/texk/kpathsea/tex-file.c
@@ -1277,7 +1277,6 @@ kpathsea_name_ok (kpathsea kpse, const_string fname, const_string check_var,
if ((q == fname || IS_DIR_SEP (*(q - 1))) /* start or / precedes dot? */
&& !IS_DIR_SEP (*(q + 1)) /* ok if /./ */
&& !(*(q + 1) == '.' && IS_DIR_SEP (*(q + 2))) /* ok if /../ */
- && !STREQ (q, ".tex") /* specially allow .tex */
&& !(extended && kpathsea_absolute_p (kpse, expanded_fname, false))
/* Don't quit if EXTENDED and the input is absolute,
because we want to allow TEXMFVAR=~/.texliveYYYY. This
@@ -1367,7 +1366,7 @@ kpathsea_name_ok (kpathsea kpse, const_string fname, const_string check_var,
not_ok: /* Some test failed. */
if (!silent)
- fprintf (stderr, "\n%s: Not %s %s (%s = %s; %s extended check).\n",
+ fprintf (stderr, "\n%s: Not %s %s (%s = %s; %sextended check).\n",
kpse->invocation_name, ok_type_name[action], fname,
check_var, open_choice, extended ? "" : "no ");
if (expanded_fname) free ((void *) expanded_fname);