This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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]

1.3.12 bug: st_mode of file changes to directory after unlink?


Hi.

If I open a file for read/write and then
unlink it (the old Unix idiom for temporary
files), fstat() on the file's fd shows
that st_mode has changed from regular
file to directory.

Regards,
    Mark.

: ASHOKA ; ./xx
/tmp/bt.XXXXXX
before unlink: mode 0x81a4 fmt 0x8000 size 0
after unlink: mode 0x416d fmt 0x4000 size 0

Attachment: xx.c
Description: Binary data

Attachment: cygcheck.out
Description: Binary data

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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