Subject: Re: funlink() for fun!
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 07/15/2003 15:49:48
> While I'm not saying get rid of sticky bits and such, I can see the
> utility of a call that a program can use to make SURE that a file has
> been unlinked.
That is easy enough to do - just fstat() the fd and check that its link
count is zero.
The problem is not making sure that it got unlinked. The problem is
making sure you don't unlink something else by mistake.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML firstname.lastname@example.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B