I am having a problem with the access() function in cygwin-1.7. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38956
$ touch foobar_file $ chmod a-w foobar_file $ cat test_access.c #include <stdio.h> #include <unistd.h> int main (void) { char *file="foobar_file"; int m = W_OK; printf("access = %d\n",access(file,m)); } $ touch foobar_file $ chmod a-w foobar_file Under cygwin-1.5 $ ./test_access access = -1 Under cygwin-1.7 $ ./test_access.exe access = -1 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/