Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/smbfs smbfs_closel(): fix inverted test in directory ...



details:   https://anonhg.NetBSD.org/src/rev/bdc70cdc74b2
branches:  trunk
changeset: 545379:bdc70cdc74b2
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Apr 07 19:31:01 2003 +0000

description:
smbfs_closel(): fix inverted test in directory case

diffstat:

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

diffs (27 lines):

diff -r fcb054760f06 -r bdc70cdc74b2 sys/fs/smbfs/smbfs_vnops.c
--- a/sys/fs/smbfs/smbfs_vnops.c        Mon Apr 07 17:22:19 2003 +0000
+++ b/sys/fs/smbfs/smbfs_vnops.c        Mon Apr 07 19:31:01 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_vnops.c,v 1.20 2003/04/07 12:21:40 jdolecek Exp $        */
+/*     $NetBSD: smbfs_vnops.c,v 1.21 2003/04/07 19:31: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.20 2003/04/07 12:21:40 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_vnops.c,v 1.21 2003/04/07 19:31:01 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -314,7 +314,7 @@
                        smbfs_findclose(np->n_dirseq, &scred);
                        np->n_dirseq = NULL;
                }
-               if ((SMB_CAPS(SSTOVC(ssp)) & SMB_CAP_NT_SMBS) == 0) {
+               if (SMB_CAPS(SSTOVC(ssp)) & SMB_CAP_NT_SMBS) {
                        error = smbfs_smb_close(ssp, np->n_fid,
                                &np->n_mtime, &scred);
                } else



Home | Main Index | Thread Index | Old Index