------- Comment #2 from billingd at gcc dot gnu dot org  2009-01-24 07:41 
-------
This looks like a problem with the access function on cygwin-1.7

$ 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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38956

Reply via email to