Date: Sat, 14 Sep 1996 16:15:34 +1000 From: Bruce Evans <bde@zeta.org.au> To: freebsd-hackers@FreeBSD.ORG, pius@iago.ienet.com Subject: Re: How to safely remove a hard link to a directory? Message-ID: <199609140615.QAA05920@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>Sorry, a short follow-up ... I just ran across an old message >from Joerg Wunsch on the mailing list archives ... Is it still >safe to just call unlink(2) on the directory name to remove the >hard link? It depends where the link goes. It is fairly safe to remove bogus links that you just created. >Why does rmdir not work? ufs_rmdir() has a fairly bogus check that the link count is 2. If it checks it at all, then it should check that one of the links is for ".". Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609140615.QAA05920>