Behavior of stat() changed from NT to Win2000/XP

Corinna Vinschen corinna-cygwin@cygwin.com
Mon May 26 15:15:00 GMT 2003


On Mon, May 26, 2003 at 09:58:11AM -0400, Peter Davis wrote:
> On Windows NT, the Cygwin stat function returns a non-zero value in
> the st_size field when called on a directory.  However, in Windows
> 2000 and Windows XP, this same function returns 0 for st_size for a
> directory.  This change in behavior has broken some features of mutt,
> and possible other programs as well.
> [...]
> Is there some Cygwin setting or configuration option that controls
> this? 

That's Windows, actually.  This value is returned for directories
by the FindFile routines.  Nothing we can do about it.  However, if
mutt depends on the st_size of a directory, that's a problem in mutt.

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