Fix an inverted test for NOPEN in the unused function smb_smb_flush().
This commit is contained in:
parent
7636aa79ab
commit
08fe4bfbda
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user