patch-2.1.132 linux/fs/hfs/dir.c

Next file: linux/fs/minix/namei.c
Previous file: linux/fs/ext2/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/fs/hfs/dir.c linux/fs/hfs/dir.c
@@ -337,9 +337,6 @@
 	struct hfs_cat_key key;
 	int error;
 
-	if (parent == inode) /* can't delete . */
-		return -EPERM;
-
 	if (build_key(&key, parent, dentry->d_name.name,
 		      dentry->d_name.len))
 		return -EPERM;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov