diff options
author | tjr <tjr@FreeBSD.org> | 2004-01-12 14:43:49 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-01-12 14:43:49 +0000 |
commit | 17a33cbd75fb964e5b2b08981bf59ff9fae027b0 (patch) | |
tree | a40501eb863df526393f71424e19cf745fd672cc | |
parent | 28fa7df8e28cfe56e7ed6d2c420ca714a7787056 (diff) | |
download | FreeBSD-src-17a33cbd75fb964e5b2b08981bf59ff9fae027b0.zip FreeBSD-src-17a33cbd75fb964e5b2b08981bf59ff9fae027b0.tar.gz |
Fix an inverted test for NOPEN in the unused function smb_smb_flush().
-rw-r--r-- | sys/fs/smbfs/smbfs_smb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/smbfs/smbfs_smb.c b/sys/fs/smbfs/smbfs_smb.c index 3a21ad2..97f5921 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); |