diff options
author | tjr <tjr@FreeBSD.org> | 2003-01-29 13:41:52 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-01-29 13:41:52 +0000 |
commit | c3d51c2ad4754001233680fd283da8bf7f51f704 (patch) | |
tree | 6c512b946049a2f5b4bd58dc3ab5273372f56932 /sys | |
parent | 28586b8dcec888549120e070f613d339fc864017 (diff) | |
download | FreeBSD-src-c3d51c2ad4754001233680fd283da8bf7f51f704.zip FreeBSD-src-c3d51c2ad4754001233680fd283da8bf7f51f704.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index fcb55d6..23586ad 100644 --- a/sys/fs/smbfs/smbfs_vnops.c +++ b/sys/fs/smbfs/smbfs_vnops.c @@ -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; |