From 08fe4bfbdac84c95cf52d37e42e05693291a2f43 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Mon, 12 Jan 2004 14:43:49 +0000 Subject: [PATCH] Fix an inverted test for NOPEN in the unused function smb_smb_flush(). --- sys/fs/smbfs/smbfs_smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/smbfs/smbfs_smb.c b/sys/fs/smbfs/smbfs_smb.c index 3a21ad29cf98..97f5921f7d1a 100644 --- a/sys/fs/smbfs/smbfs_smb.c +++ b/sys/fs/smbfs/smbfs_smb.c @@ -363,7 +363,7 @@ smb_smb_flush(struct smbnode *np, struct smb_cred *scred) struct mbchain *mbp; int error; - if ((np->n_flag & NOPEN) != 0 || !SMBTOV(np) || + if ((np->n_flag & NOPEN) == 0 || !SMBTOV(np) || SMBTOV(np)->v_type != VREG) return 0; /* not a regular open file */ error = smb_rq_init(rqp, SSTOCP(ssp), SMB_COM_FLUSH, scred);