The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=631b8ff9318a83b985d3a8a790dd0fc1bab9d5cd
commit 631b8ff9318a83b985d3a8a790dd0fc1bab9d5cd Author: Konstantin Belousov <[email protected]> AuthorDate: 2026-06-19 08:11:18 +0000 Commit: Konstantin Belousov <[email protected]> CommitDate: 2026-07-11 22:04:43 +0000 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 --- sys/fs/tmpfs/tmpfs_vnops.c | 4 ++-- 1 file 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; }
