Fix an inverted test for NOPEN in the unused function smb_smb_flush().

This commit is contained in:
Tim J. Robbins 2004-01-12 14:43:49 +00:00
parent 7636aa79ab
commit 08fe4bfbda
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124434

View file

@ -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);