I'm very pleased to announce the release of our new website and documentation using the new toolchain with Hugo and AsciiDoctor. To get more information about the new toolchain please read the FreeBSD Documentation Project Primer[1], Hugo docs[2] and AsciiDoctor docs[3]. Acknowledgment: Benedict Reuschling <bcr@> Glen Barber <gjb@> Hiroki Sato <hrs@> Li-Wen Hsu <lwhsu@> Sean Chittenden <seanc@> The FreeBSD Foundation [1] https://docs.FreeBSD.org/en/books/fdp-primer/ [2] https://gohugo.io/documentation/ [3] https://docs.asciidoctor.org/home/ Approved by: doceng, core
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;
|