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
This commit is contained in:
Tim J. Robbins 2003-09-26 12:11:08 +00:00
parent 90c6d14eb1
commit aa808a7fa6

View File

@ -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;