patch-1.3.21 linux/fs/msdos/namei.c
Next file: linux/fs/nfs/inode.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
-  Lines: 12
 -  Date:
Mon Aug 28 08:42:13 1995
 -  Orig file: 
v1.3.20/linux/fs/msdos/namei.c
 -  Orig date: 
Wed Aug  2 13:21:15 1995
 
diff -u --recursive --new-file v1.3.20/linux/fs/msdos/namei.c linux/fs/msdos/namei.c
@@ -105,8 +105,9 @@
 	char msdos_name[MSDOS_NAME];
 	int res;
 
-	if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len,
-	    msdos_name,1)) < 0) return res;
+	res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, msdos_name,1);
+	if (res < 0)
+		return -ENOENT;
 	return msdos_scan(dir,msdos_name,bh,de,ino);
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this