texlive[53273] Build/source/texk/kpathsea: not test x bit on Windows,
commits+kakuto at tug.org
commits+kakuto at tug.org
Tue Dec 31 00:20:26 CET 2019
Revision: 53273
http://tug.org/svn/texlive?view=revision&revision=53273
Author: kakuto
Date: 2019-12-31 00:20:26 +0100 (Tue, 31 Dec 2019)
Log Message:
-----------
not test x bit on Windows, because access() crashes
Modified Paths:
--------------
trunk/Build/source/texk/kpathsea/ChangeLog
trunk/Build/source/texk/kpathsea/access.c
Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog 2019-12-30 22:18:02 UTC (rev 53272)
+++ trunk/Build/source/texk/kpathsea/ChangeLog 2019-12-30 23:20:26 UTC (rev 53273)
@@ -1,3 +1,7 @@
+2019-12-31 Akira Kakuto <kakuto at w32tex.org>
+
+ * access.c: not test x bit on Windows, because access() crashes.
+
2019-12-29 Karl Berry <karl at tug.org>
* mktexlsr,
Modified: trunk/Build/source/texk/kpathsea/access.c
===================================================================
--- trunk/Build/source/texk/kpathsea/access.c 2019-12-30 22:18:02 UTC (rev 53272)
+++ trunk/Build/source/texk/kpathsea/access.c 2019-12-30 23:20:26 UTC (rev 53273)
@@ -1,6 +1,6 @@
/* access -- test for access permissions of a file.
- Copyright 2008, 2009 Karl Berry.
+ Copyright 2008, 2009-2019 Karl Berry.
Copyright 1997-2001, 2005 Olaf Weber.
This program is free software; you can redistribute it and/or modify
@@ -71,7 +71,12 @@
switch (*i) {
case 'r': mode |= R_OK; break;
case 'w': mode |= W_OK; break;
+#if defined(_WIN32)
+/* access() crashes for unsupported test of x bit */
+ case 'x': break;
+#else
case 'x': mode |= X_OK; break;
+#endif
case '-': if (i == argv[1]) break;
default:
fprintf(stderr, "%s: Invalid MODE.\n", argv[0]);
More information about the tex-live-commits
mailing list