ansible/ansible — pull request #7543 by yangliping (2014-05-26 03:21:04+00:00)
Title: Fix portability issue when checking local facts file permission.

Under Solaris, os.access(fn, os.X_OK) return True for user root even if the file is not executable by user root. In that way, ansible always try to execute non-executable local facts files instead of reading it.

I suggest use os.stat() to check the executable bit for portability reason.

Please refer the following link for more info.

http://bugs.python.org/issue14706