texlive[69641] Build/source/texk/kpathsea: do not use cpp symbol

commits+karl at tug.org commits+karl at tug.org
Tue Jan 30 23:21:44 CET 2024


Revision: 69641
          https://tug.org/svn/texlive?view=revision&revision=69641
Author:   karl
Date:     2024-01-30 23:21:44 +0100 (Tue, 30 Jan 2024)
Log Message:
-----------
do not use cpp symbol "unix", not defined by clang on mac

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-30 22:17:41 UTC (rev 69640)
+++ trunk/Build/source/texk/kpathsea/ChangeLog	2024-01-30 22:21:44 UTC (rev 69641)
@@ -1,3 +1,9 @@
+2024-01-30  Karl Berry  <karl at freefriends.org>
+
+	* tex-file.c (kpathsea_name_ok) [MSDOS]: remove [unix] from cpp
+	test, since it's not defined by clang. See thread surrounding
+	https://tug.org/pipermail/tlbuild/2024q1/005408.html.
+
 2024-01-27  Karl Berry  <karl at freefriends.org>
 
 	* tex-file.c (kpathsea_name_ok): 

Modified: trunk/Build/source/texk/kpathsea/tex-file.c
===================================================================
--- trunk/Build/source/texk/kpathsea/tex-file.c	2024-01-30 22:17:41 UTC (rev 69640)
+++ trunk/Build/source/texk/kpathsea/tex-file.c	2024-01-30 22:21:44 UTC (rev 69641)
@@ -1257,8 +1257,8 @@
      since TEXMFVAR is typically ~/.texliveYYYY, and we want to allow it.  */
   expanded_fname = kpathsea_expand (kpse, fname);
 
-#if defined (unix) && !defined (MSDOS)
-  {
+#ifndef MSDOS
+  { /* On non-Windows ... */
     /* Disallow .rhosts, .login, .ssh/, ..somefile, ..somedir/somefile,
        etc.  But allow .tex (for base LaTeX).  Also specially allow
        /foo/.whatever if extended, since it might match against
@@ -1286,9 +1286,9 @@
       qq = q + 1;
     }
   }
-#else
+#else /* MSDOS */
   /* Other OSs don't have special names? */
-#endif
+#endif /* MSDOS */
 
   /* 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.