summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-09-18 09:40:01 +0000
committerphk <phk@FreeBSD.org>2000-09-18 09:40:01 +0000
commit56aecf1ece0ec7d4fe1920c764fc67f36f30e0e4 (patch)
treebf6004568834dfebf2963417f645ded7f8db536d /sys/fs
parent06d8422b3264a7e6a789ef0e10917be8545d5308 (diff)
downloadFreeBSD-src-56aecf1ece0ec7d4fe1920c764fc67f36f30e0e4.zip
FreeBSD-src-56aecf1ece0ec7d4fe1920c764fc67f36f30e0e4.tar.gz
Ignore attempts to set flags to zero. This quenches a syslog warning
from login(1).
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/devfs/devfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index c890b78..cb8caff 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -557,7 +557,7 @@ devfs_setattr(ap)
(vap->va_fsid != VNOVAL) ||
(vap->va_fileid != VNOVAL) ||
(vap->va_blocksize != VNOVAL) ||
- (vap->va_flags != VNOVAL) ||
+ (vap->va_flags != VNOVAL && vap->va_flags != 0) ||
(vap->va_rdev != VNOVAL) ||
((int)vap->va_bytes != VNOVAL) ||
(vap->va_gen != VNOVAL)) {
OpenPOWER on IntegriCloud