texlive[69644] Build/source/texk/kpathsea: change #ifndef MSDOS to
commits+kakuto at tug.org
commits+kakuto at tug.org
Wed Jan 31 03:44:45 CET 2024
Revision: 69644
https://tug.org/svn/texlive?view=revision&revision=69644
Author: kakuto
Date: 2024-01-31 03:44:45 +0100 (Wed, 31 Jan 2024)
Log Message:
-----------
change #ifndef MSDOS to #if !defined(MSDOS) && !defined(_WIN32) because MSDOS is not defined in the current Windows build
Modified Paths:
--------------
trunk/Build/source/texk/kpathsea/ChangeLog
trunk/Build/source/texk/kpathsea/tex-file.c
Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog 2024-01-31 00:43:44 UTC (rev 69643)
+++ trunk/Build/source/texk/kpathsea/ChangeLog 2024-01-31 02:44:45 UTC (rev 69644)
@@ -1,3 +1,9 @@
+2024-01-31 Akira Kakuto <kakuto at jcom.zaq.ne.jp>
+
+ * tex-file.c (kpathsea_name_ok) [MSDOS]: change #ifndef MSDOS
+ to #if !defined(MSDOS) && !defined(_WIN32) because MSDOS is not
+ defined in the current Windows build.
+
2024-01-30 Karl Berry <karl at freefriends.org>
* tex-file.c (kpathsea_name_ok) [MSDOS]: remove [unix] from cpp
Modified: trunk/Build/source/texk/kpathsea/tex-file.c
===================================================================
--- trunk/Build/source/texk/kpathsea/tex-file.c 2024-01-31 00:43:44 UTC (rev 69643)
+++ trunk/Build/source/texk/kpathsea/tex-file.c 2024-01-31 02:44:45 UTC (rev 69644)
@@ -1257,7 +1257,7 @@
since TEXMFVAR is typically ~/.texliveYYYY, and we want to allow it. */
expanded_fname = kpathsea_expand (kpse, fname);
-#ifndef MSDOS
+#if !defined(MSDOS) && !defined(_WIN32)
{ /* On non-Windows ... */
/* Disallow .rhosts, .login, .ssh/, ..somefile, ..somedir/somefile,
etc. But allow .tex (for base LaTeX). Also specially allow
@@ -1286,9 +1286,9 @@
qq = q + 1;
}
}
-#else /* MSDOS */
+#else /* !MSDOS && !_WIN32 */
/* Other OSs don't have special names? */
-#endif /* MSDOS */
+#endif /* !MSDOS && !_WIN32 */
/* If setting is only r(estricted), we're done. (Not a useful setting
in practice, but no reason to take it out now.) */
More information about the tex-live-commits
mailing list.