Bug 54138 - X_OK permission is invalid for win32 access(..) calls
Summary: X_OK permission is invalid for win32 access(..) calls
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium major
Assignee: Akira TAGOH
QA Contact: Behdad Esfahbod
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-28 00:50 UTC by Pavel Koshevoy
Modified: 2012-08-31 03:41 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Pavel Koshevoy 2012-08-28 00:50:13 UTC
a fatal error occurs when initializing fontconfig font cache on 
windows. The problem is due to access(.., W_OK|X_OK) call(s) in fccache.c

According to 
http://msdn.microsoft.com/en-us/library/1w06ktdy%28v=vs.80%29.aspx 01 
permission (X_OK in mingw/cygwin headers) is not a valid parameter, and 
it causes a fatal error terminating the program.

A possible workaround on the capplication side is to re-implement the access(..) function to mask out the X_OK (01) bit from the permissions 
bitmask, and then call _access with corrected permissions.
Comment 1 Akira TAGOH 2012-08-31 03:41:16 UTC
removed all of X_OK thing from the code in git. it should works now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.