Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 1997 13:31:35 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, phk@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/msdosfs msdosfs_vnops.c src/sys/nfs nfs_vnops.c src/sys/ufs/ufs ufs_vnops.c
Message-ID:  <199705180331.NAA21217@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified files:
>    sys/msdosfs          msdosfs_vnops.c 
>    sys/nfs              nfs_vnops.c 
>    sys/ufs/ufs          ufs_vnops.c 
>  Log:
>  Remove redundant check for vp == dvp (done in VFS before calling).

VFS probably shouldn't check it.  There is no restriction on rmdir'ing
the current directory of other processes, so why restrict rmdir(".")?
Individual fs's should check for it iff they can't handle it.

Related strange behaviour: after rmdir of the current directory of a
process, `hd .' still works and shows an completely empty directory (with
no "." or ".." entries.  I think it should fail because the directory
entry no longer exists.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705180331.NAA21217>