How do you fstat an open directory?

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Mar 23 14:52:00 GMT 2004


On Mar 22 21:30, Mark Blackburn wrote:
> mark@althor ~
> $ ./testcase.exe
> inode of d:17489383932880356520
> 
> mark@althor ~
> $ ls -id d
> 3659174697343209 d/
[...]
> Notice that the inodes don't match from ls -id and from my test program. 
> Am I doing something wrong?

No, it's a bug in Cygwin's fstat implementation which happens to go
wrong for directories.  Thanks for catching this.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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



More information about the Cygwin mailing list