This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/38956] test gfortran.dg/chmod_1.f90 fails on i686-pc-cygwin



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]