Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102048698
D47100.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
741 B
Referenced Files
None
Subscribers
None
D47100.diff
View Options
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -1344,6 +1344,7 @@
goto out;
}
+ /* Check flags to see if we are allowed to remove the directory. */
if ((dnode->tn_flags & APPEND)
|| (node->tn_flags & (NOUNLINK | IMMUTABLE | APPEND))) {
error = EPERM;
@@ -1361,13 +1362,6 @@
cnp->cn_nameptr,
cnp->cn_namelen));
- /* Check flags to see if we are allowed to remove the directory. */
- if ((dnode->tn_flags & APPEND) != 0 ||
- (node->tn_flags & (NOUNLINK | IMMUTABLE | APPEND)) != 0) {
- error = EPERM;
- goto out;
- }
-
/* Detach the directory entry from the directory (dnode). */
tmpfs_dir_detach(dvp, de);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 11:31 PM (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14017521
Default Alt Text
D47100.diff (741 B)
Attached To
Mode
D47100: tmpfs: removed double flags check in tmpfs_rmdir vop
Attached
Detach File
Event Timeline
Log In to Comment