This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38956] test gfortran.dg/chmod_1.f90 fails on i686-pc-cygwin
- From: "billingd at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2009 07:41:11 -0000
- Subject: [Bug fortran/38956] test gfortran.dg/chmod_1.f90 fails on i686-pc-cygwin
- References: <bug-38956-270@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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