patch-2.4.0-test5 linux/fs/msdos/namei.c
Next file: linux/fs/namei.c
Previous file: linux/fs/minix/inode.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Jul 18 22:48:32 2000
- Orig file:
v2.4.0-test4/linux/fs/msdos/namei.c
- Orig date:
Tue May 23 15:31:36 2000
diff -u --recursive --new-file v2.4.0-test4/linux/fs/msdos/namei.c linux/fs/msdos/namei.c
@@ -85,7 +85,7 @@
if((res==walk) && (c==0xE5)) c=0x05;
if (c == '.') break;
space = (c == ' ');
- *walk = (c >= 'a' && c <= 'z') ? c-32 : c;
+ *walk = (!opts->nocase && c >= 'a' && c <= 'z') ? c-32 : c;
}
if (space) return -EINVAL;
if (opts->conversion == 's' && len && c != '.') {
@@ -114,7 +114,7 @@
if (c >= 'A' && c <= 'Z' && opts->conversion == 's')
return -EINVAL;
space = c == ' ';
- *walk++ = c >= 'a' && c <= 'z' ? c-32 : c;
+ *walk++ = (!opts->nocase && c >= 'a' && c <= 'z') ? c-32 : c;
}
if (space) return -EINVAL;
if (opts->conversion == 's' && len) return -EINVAL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)