Date: Fri, 2 Jun 1995 03:57:52 -0700 From: David Greenman <davidg> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/msdosfs msdosfs_vnops.c Message-ID: <199506021057.DAA21097@freefall.cdrom.com>
next in thread | raw e-mail | index | archive | help
davidg 95/06/02 03:57:52 Modified: sys/msdosfs msdosfs_vnops.c Log: Don't "remember" where the target directory slot is. The target slot doesn't move. "Remembering" the target slot was a no-op for files, but for directories it changed the target slot to slot of the "." entry in the source directory. Thus rename("a", "b/c") (where "a" is any directory and "b/c" is an empty directory) was essentially unlink("b/c"); rename("a/.", "a"); unlink("a"); where the middle rename corrupts "a/." and the final unlink detaches "a" and everything underneath it from the directory tree although not from the file system. Submitted by: Bruce Evans
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506021057.DAA21097>