Mail Archives: cygwin-developers/2003/03/10/11:18:02
Corinna Vinschen wrote:
>
> On Mon, Mar 10, 2003 at 10:36:26AM -0500, Pierre A. Humblet wrote:
> > So I would propose to remove the DELETE code from alloc_sd and sec_acl
> > and to leave unlink as it is, in that respect.
>
> Like this?
Wow. Yes.
> > 2) Why is wincap.has_delete_on_close needed?
>
> Hmm, I can't answer this one. Historical reasons? Bad experience?
>
> > 3) I don't understand why there are so many SetFileAttributes after CreateFile
> > succeeds. If the file will be deleted, its attributes are don't care. If it won't,
> > then we undo twice what we just did before the CreateFile.
> > Also it's an easy test to decide if the SetFileAttribute before CreateFile is needed.
>
> Chris and I are through this attribute hell this weekend. To make it
> short: If the file is hardlinked more than once, the other links would
> miss an attribute after removing this one link.
I think I see. When a file is hard linked, SetFileAttributes affects *all* links.
Correct?
Still, it's easy to decide if the calls are needed.
Pierre
- Raw text -