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

Mark Moraes mmoraes@teleias.com
Mon Sep 30 13:36:00 GMT 2002


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xx.c
Type: application/octet-stream
Size: 947 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020930/cb413375/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 16918 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020930/cb413375/attachment-0001.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list