Escape the backslash in badchars so that smbfs_pathcheck() correctly

rejects pathnames with backslashes in them (and to avoid a syntax error).

Found by:	FlexeLint
This commit is contained in:
tjr 2003-01-29 13:41:52 +00:00
parent 28586b8dce
commit c3d51c2ad4

@ -1072,7 +1072,7 @@ smbfs_advlock(ap)
static int
smbfs_pathcheck(struct smbmount *smp, const char *name, int nmlen, int nameiop)
{
static const char *badchars = "*/\[]:<>=;?";
static const char *badchars = "*/\\[]:<>=;?";
static const char *badchars83 = " +|,";
const char *cp;
int i, error;