aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-06-19 08:11:18 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-07-11 22:04:43 +0000
commit631b8ff9318a83b985d3a8a790dd0fc1bab9d5cd (patch)
treed131d18ffded0193da7b78326109cbd46400eb50
parent3055c47f6024b087a90021edb05992304a119827 (diff)
tmpfs_rename(): style
Reviewed by: mckusick Discussed with: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D57658
-rw-r--r--sys/fs/tmpfs/tmpfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
index 05d8f3e863e8..b635450f205f 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -1104,8 +1104,8 @@ tmpfs_rename(struct vop_rename_args *v)
}
}
- if ((fnode->tn_flags & (NOUNLINK | IMMUTABLE | APPEND))
- || (fdnode->tn_flags & (APPEND | IMMUTABLE))) {
+ if ((fnode->tn_flags & (NOUNLINK | IMMUTABLE | APPEND)) != 0 ||
+ (fdnode->tn_flags & (APPEND | IMMUTABLE)) != 0) {
error = EPERM;
goto out_locked;
}