Page MenuHomeFreeBSD

D47100.diff
No OneTemporary

D47100.diff

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

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)

Event Timeline