Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/smbfs Allow the [, ], and = characters in non-8.3 fil...



details:   https://anonhg.NetBSD.org/src/rev/bb67bbf7be24
branches:  trunk
changeset: 559624:bb67bbf7be24
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Mar 21 10:24:01 2004 +0000

description:
Allow the [, ], and = characters in non-8.3 filenames since they
are allowed by Windows (ref: MS KB article 120138).

Change follows FreeBSD rev. 1.40

diffstat:

 sys/fs/smbfs/smbfs_vnops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r a3499d5dd7e2 -r bb67bbf7be24 sys/fs/smbfs/smbfs_vnops.c
--- a/sys/fs/smbfs/smbfs_vnops.c        Sun Mar 21 10:09:52 2004 +0000
+++ b/sys/fs/smbfs/smbfs_vnops.c        Sun Mar 21 10:24:01 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_vnops.c,v 1.39 2004/03/20 21:03:42 jdolecek Exp $        */
+/*     $NetBSD: smbfs_vnops.c,v 1.40 2004/03/21 10:24:01 jdolecek Exp $        */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_vnops.c,v 1.39 2004/03/20 21:03:42 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_vnops.c,v 1.40 2004/03/21 10:24:01 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1128,8 +1128,8 @@
 static int
 smbfs_pathcheck(struct smbmount *smp, const char *name, int nmlen)
 {
-       static const char * const badchars = "*/\\[]:<>=;?";
-       static const char * const badchars83 = " +|,";
+       static const char * const badchars = "*/\\:<>;?";
+       static const char * const badchars83 = " +|,[]=";
        const char *cp;
        int i;
 



Home | Main Index | Thread Index | Old Index