From eb7ba7f95c9e0f920afc720938a38f3f92216f1e Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 18 Sep 2000 09:40:01 +0000 Subject: [PATCH] Ignore attempts to set flags to zero. This quenches a syslog warning from login(1). --- sys/fs/devfs/devfs_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index c890b78c3398..cb8caff6698b 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)) {