git: 5dc55cc4591e - stable/15 - tmpfs_rename(): style
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Jul 2026 00:28:12 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=5dc55cc4591ef9d7aecc934a69351259cba99a10
commit 5dc55cc4591ef9d7aecc934a69351259cba99a10
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-06-19 08:11:18 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-07-18 00:27:24 +0000
tmpfs_rename(): style
(cherry picked from commit 631b8ff9318a83b985d3a8a790dd0fc1bab9d5cd)
---
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 edd620cfdb5b..d42d601e630c 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;
}