summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2019-12-30 23:20:26 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2019-12-30 23:20:26 +0000
commit2d88204c158fbd00e45991a52016209840ed9196 (patch)
treee19da5723ae16fc979994d1a9e16195c14fc95e2 /Build
parent7fe768152ff17f4ce8a56df82832a8978336fb58 (diff)
not test x bit on Windows, because access() crashes
git-svn-id: svn://tug.org/texlive/trunk@53273 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog4
-rw-r--r--Build/source/texk/kpathsea/access.c7
2 files changed, 10 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index e4d2c91ba00..72a33258435 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,7 @@
+2019-12-31 Akira Kakuto <kakuto@w32tex.org>
+
+ * access.c: not test x bit on Windows, because access() crashes.
+
2019-12-29 Karl Berry <karl@tug.org>
* mktexlsr,
diff --git a/Build/source/texk/kpathsea/access.c b/Build/source/texk/kpathsea/access.c
index e6fb91174d2..5e53d2965bf 100644
--- a/Build/source/texk/kpathsea/access.c
+++ b/Build/source/texk/kpathsea/access.c
@@ -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 @@ Try `%s --help' for more information.\n", argv[0], argv[0]);
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]);