Subject: CVS commit: src/sys/fs/tmpfs
To: None <source-changes@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@netbsd.org>
List: source-changes
Date: 07/23/2007 15:41:01
Module Name:	src
Committed By:	jmmv
Date:		Mon Jul 23 15:41:01 UTC 2007

Modified Files:
	src/sys/fs/tmpfs: tmpfs_vnops.c

Log Message:
Multiple fixes for tmpfs' rename operation:

- Raise an error if renaming a file to a directory.
- Raise an error if renaming a directory to a file.
- Raise an error if renaming a directory to a non-empty directory.
- Properly allow renaming a directory to an empty directory.
  The system could previously crash if the kernel had DIAGNOSTIC enabled,
  as this triggered a bogus assertion.

Problem found by Geoff Wing.


To generate a diff of this commit:
cvs rdiff -r1.38 -r1.39 src/sys/fs/tmpfs/tmpfs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.