summaryrefslogtreecommitdiff
path: root/fc-cache
diff options
context:
space:
mode:
authorKeith Packard <keithp@koto.keithp.com>2007-10-18 05:04:39 -0700
committerKeith Packard <keithp@koto.keithp.com>2007-10-18 05:04:39 -0700
commit238489030a64fa883f8f9fc3d73247b7f7257899 (patch)
treebdfff48c378e4b37a070402d01ed013947896684 /fc-cache
parent2b0d3d8af5a83604972e4e0fe80802e448d6dd11 (diff)
downloadfontconfig-238489030a64fa883f8f9fc3d73247b7f7257899.tar.gz
Don't use X_OK bit when checking for writable directories (bug 12438)
Some mingw versions have broken X_OK checking; instead of trying to work around this in a system-depedent manner, simply don't bother checking for X_OK along with W_OK as such cases are expected to be mistakes, and not sensible access control.
Diffstat (limited to 'fc-cache')
-rw-r--r--fc-cache/fc-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c
index 531e8fb..dda40c1 100644
--- a/fc-cache/fc-cache.c
+++ b/fc-cache/fc-cache.c
@@ -264,7 +264,7 @@ cleanCacheDirectory (FcConfig *config, FcChar8 *dir, FcBool verbose)
fprintf (stderr, "%s: out of memory\n", dir);
return FcFalse;
}
- if (access ((char *) dir, W_OK|X_OK) != 0)
+ if (access ((char *) dir, W_OK) != 0)
{
if (verbose)
printf ("%s: not cleaning %s cache directory\n", dir,