Marcin Bachry <hegel...@gmail.com> added the comment: In the libc case you shouldn't give absolute path in CDLL: CDLL('libc.so.6') is better. You use "/lib/libc.so.6" path, but Python (and ctypes.so) actually uses something like "/lib/tls/i686/cmov/libc.so.6" - these are two separate libraries with separate "errno" variables, mapped to different memory regions. Your call to getxattr modifies errno in the former library, but ctypes get_errno() fetches value from the latter library.
If I fix CDLL() call, the test works ok for me. ---------- nosy: +marcin.bachry _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7760> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com