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:
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user