On Thu, 28 Mar 2002, Chris Young wrote:

> Because unlinking a directory causes any files in the deleted directory to
> become unreferenced, it is wise to fsck the filesystem after doing this. 
> 
> >From perldoc -f unlink:
> Note: unlink() will not delete directories unless you are superuser and
> the -U flag is supplied to Perl.  Even if these conditions are
> met, be warned that unlinking a directory can inflict damage on your
> filesystem.  Use rmdir() instead.
> 
> I'm not even sure why there is an option to call unlink() on a directory.
> 
> If you would like to be more confused, check out:
> http://www.scit.wlv.ac.uk/~jphb/spos/notes/calls/unlink.html

Hmm.. could be used for hiding a directory such as something that contains 
a license or secret key of some kind for a proprietary application or some 
hackers application.

-- 
---<GRiP>--- 
Web: www.arcadia.au.com/gripz 
Answering Machine/fax: 02 4950 1194 (wait 5 mins if no answer)
Mobile: 0408 686 201

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to