mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 17:10:36 +00:00
Fix an inverted test for NOPEN in the unused function smb_smb_flush().
This commit is contained in:
parent
7636aa79ab
commit
08fe4bfbda
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124434
|
@ -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 a new issue