diff options
Diffstat (limited to 'Build/source/texk/kpathsea')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/access.c | 7 |
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]); |