Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/smbfs put the printf about version mismatch inside #i...



details:   https://anonhg.NetBSD.org/src/rev/29c5f17b8121
branches:  trunk
changeset: 543360:29c5f17b8121
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Feb 23 22:20:05 2003 +0000

description:
put the printf about version mismatch inside #ifdef SMB_VNODE_DEBUG
do not touch sm_args.mount_point[]

diffstat:

 sys/fs/smbfs/smbfs_vfsops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 648a4352094f -r 29c5f17b8121 sys/fs/smbfs/smbfs_vfsops.c
--- a/sys/fs/smbfs/smbfs_vfsops.c       Sun Feb 23 22:14:09 2003 +0000
+++ b/sys/fs/smbfs/smbfs_vfsops.c       Sun Feb 23 22:20:05 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_vfsops.c,v 1.12 2003/02/23 21:27:33 jdolecek Exp $       */
+/*     $NetBSD: smbfs_vfsops.c,v 1.13 2003/02/23 22:20:05 jdolecek Exp $       */
 
 /*
  * Copyright (c) 2000-2001, Boris Popov
@@ -136,8 +136,10 @@
                return error;
 
        if (args.version != SMBFS_VERSION) {
+#ifdef SMB_VNODE_DEBUG
                printf("mount version mismatch: kernel=%d, mount=%d\n",
                    SMBFS_VERSION, args.version);
+#endif
                return EINVAL;
        }
        smb_makescred(&scred, p, p->p_ucred);
@@ -177,8 +179,6 @@
                vcp->vc_srvname,
                ssp->ss_name);
 
-       /* protect against invalid mount points */
-       smp->sm_args.mount_point[sizeof(smp->sm_args.mount_point) - 1] = '\0';
        vfs_getnewfsid(mp);
        error = smbfs_root(mp, &vp);
        if (error)



Home | Main Index | Thread Index | Old Index