stat() returning EFAULT?

2009-02-24 Thread Sjors Gielen
Hey all, I noticed this weird cygwinism and wrote a little test case. It seems stat() is returning EFAULT on some of my files. I've done some digging through Cygwin source but couldn't see the source of the problem. The testcase is a simple test.c which is compiled to test.exe. After that, i

Re: stat() returning EFAULT?

2009-02-24 Thread Samuel Thibault
Sjors Gielen, le Tue 24 Feb 2009 16:54:28 +0100, a écrit : > Here's the test case and output: > > #include > int main() { > if(stat("test") != 0) perror("Calling stat() on test"); > if(stat("test.exe") != 0) perror("Calling stat() on test.exe"); > return 0; > } Compile with -Wa