patch-2.0.36 linux/fs/msdos/namei.c

Next file: linux/fs/nfs/dir.c
Previous file: linux/fs/locks.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/fs/msdos/namei.c linux/fs/msdos/namei.c
@@ -369,7 +369,7 @@
 	if (MSDOS_I(dir)->i_start) { /* may be zero in mkdir */
 		pos = 0;
 		bh = NULL;
-		while (fat_get_entry(dir,&pos,&bh,&de) > -1)
+		while (fat_get_entry(dir,&pos,&bh,&de) > -1) {
 			/* Ignore vfat longname entries */
 			if (de->attr == ATTR_EXT)
 				continue;
@@ -379,6 +379,7 @@
 				fat_brelse(sb, bh);
 				return -ENOTEMPTY;
 			}
+		}
 		if (bh)
 			fat_brelse(sb, bh);
 	}

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