patches for easier mirroring, to eliminate a special copy, to make www.freebsd.org/security a full copy of security.freebsd.org and be eventually be the same. For now files are just sitting there. The symlinks are missing. Discussed on: www (repository location) Discussed with: simon (so)
27 lines
874 B
Diff
27 lines
874 B
Diff
Index: sys/fs/smbfs/smbfs_vnops.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/sys/fs/smbfs/smbfs_vnops.c,v
|
|
retrieving revision 1.61
|
|
diff -u -I__FBSDID -r1.61 smbfs_vnops.c
|
|
--- sys/fs/smbfs/smbfs_vnops.c 13 Apr 2005 10:59:08 -0000 1.61
|
|
+++ sys/fs/smbfs/smbfs_vnops.c 27 May 2006 10:18:33 -0000
|
|
@@ -1018,11 +1018,18 @@
|
|
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;
|
|
|
|
+ /*
|
|
+ * Backslash characters, being a path delimiter, are prohibited
|
|
+ * within a path component even for LOOKUP operations.
|
|
+ */
|
|
+ if (index(name, '\\') != NULL)
|
|
+ return ENOENT;
|
|
+
|
|
if (nameiop == LOOKUP)
|
|
return 0;
|
|
error = ENOENT;
|