From 2d88204c158fbd00e45991a52016209840ed9196 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Mon, 30 Dec 2019 23:20:26 +0000 Subject: not test x bit on Windows, because access() crashes git-svn-id: svn://tug.org/texlive/trunk@53273 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 4 ++++ Build/source/texk/kpathsea/access.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'Build/source') 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 + + * access.c: not test x bit on Windows, because access() crashes. + 2019-12-29 Karl Berry * 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]); -- cgit v1.2.3