This is the mail archive of the
cygwin
mailing list for the Cygwin project.
access() function in 1.7
- From: David Billinghurst <dbcygwin at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 24 Jan 2009 18:40:50 +1100
- Subject: access() function in 1.7
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/