HardenedBSD/sys
Bill Paul 1b4a7d506f Fix (properly, I hope) 'panic: sillyrename dir' crash that can happen
if you do:

% cd /nfsdir
% mkdir -p foo/foo
% mv foo/foo .

nfs_sillyrename() self-destructs if you try to sillyrename a directory,
however nfs_rename() can be coerced into doing just that by the above
sequence of commands. To avoid this, nfs_rename() now checks that
v_type of the 'destination' vnode != VDIR before attempting the
sillyrename. The server correctly handles this particular situation
by returning ENOTEMPTY on the rename() attempt.

I asked if this was the correct fix for this on -hackers but nobody
ever answered.

This is a 2.2 candidate.
1996-12-31 07:10:19 +00:00
..
alpha
amd64 Let the VM system know that on certain arch's that VM_PROT_READ 1996-12-30 05:31:21 +00:00
compat/linux
compile
conf Put INCLUDE_CONFIG_FILE into opt_config.h rather than the CFLAGS line 1996-12-26 23:38:17 +00:00
ddb
dev
fs This commit is the embodiment of some VFS read clustering improvements. 1996-12-29 02:45:28 +00:00
geom
gnu This commit is the embodiment of some VFS read clustering improvements. 1996-12-29 02:44:37 +00:00
i386 A couple of changes for proper mpu401 recognition, and an opl3 patch 1996-12-30 22:26:26 +00:00
isa
isofs/cd9660 This commit is the embodiment of some VFS read clustering improvements. 1996-12-29 02:45:28 +00:00
kern Update our kernel ntp code to the latest from David Mills. The main change 1996-12-30 18:26:28 +00:00
libkern
miscfs
modules
msdosfs Don't synchronously update the directory entry at the end of every 1996-12-25 20:15:12 +00:00
net
netatalk
netinet Add INADDR_LOOPBACK, moved from <rpc/rpc.h> 1996-12-30 15:34:17 +00:00
netipx
netkey
netns
nfs Fix (properly, I hope) 'panic: sillyrename dir' crash that can happen 1996-12-31 07:10:19 +00:00
nfsclient Fix (properly, I hope) 'panic: sillyrename dir' crash that can happen 1996-12-31 07:10:19 +00:00
nfsserver
pc98 Synchronize with sys/i386/isa/npx.c revision 1.35 (disable 1996-12-29 08:14:02 +00:00
pccard
pci
powerpc/include
rpc First commit of a series of cleanups for the libc rpc code which has been 1996-12-30 13:59:41 +00:00
scsi
sys Update our kernel ntp code to the latest from David Mills. The main change 1996-12-30 18:26:28 +00:00
tools
ufs This commit is the embodiment of some VFS read clustering improvements. 1996-12-29 02:45:28 +00:00
vm Let the VM system know that on certain arch's that VM_PROT_READ 1996-12-30 05:31:21 +00:00
Makefile