diff options
author | tjr <tjr@FreeBSD.org> | 2003-09-26 12:11:08 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-09-26 12:11:08 +0000 |
commit | 00e44cc5a75103999aa68c8f3ed546d147a3d183 (patch) | |
tree | 2c4a6727f07db1231ad92e341c3c6d8441e1d429 /sys/fs/smbfs/smbfs_vnops.c | |
parent | 32dea828c9a0152168bad7b69928f5f0ec106cb1 (diff) | |
download | FreeBSD-src-00e44cc5a75103999aa68c8f3ed546d147a3d183.zip FreeBSD-src-00e44cc5a75103999aa68c8f3ed546d147a3d183.tar.gz |
Allow the [, ], and = characters in non-8.3 filenames since they
are allowed by Windows (ref: MS KB article 120138).
XXX From my reading of the CIFS specification, it's not clear that
clients need to validate filenames at all.
PR: 57123
Submitted by: Paul Coucher
MFC after: 1 month
Diffstat (limited to 'sys/fs/smbfs/smbfs_vnops.c')
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index 826706d..1c9270a 100644 --- a/sys/fs/smbfs/smbfs_vnops.c +++ b/sys/fs/smbfs/smbfs_vnops.c @@ -1028,8 +1028,8 @@ smbfs_advlock(ap) static int smbfs_pathcheck(struct smbmount *smp, const char *name, int nmlen, int nameiop) { - static const char *badchars = "*/\\[]:<>=;?"; - static const char *badchars83 = " +|,"; + static const char *badchars = "*/\\:<>;?"; + static const char *badchars83 = " +|,[]="; const char *cp; int i, error; |