Page MenuHomeFreeBSD

D38245.1775699463.diff
No OneTemporary

Size
514 B
Referenced Files
None
Subscribers
None

D38245.1775699463.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
@@ -1129,6 +1129,13 @@
if (de->td_node->tn_type == VDIR) {
struct tmpfs_node *n;
+ error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, curthread);
+ if (error) {
+ if (newname != NULL)
+ free(newname, M_TMPFSNAME);
+ goto out_locked;
+ }
+
/*
* Ensure the target directory is not a child of the
* directory being moved. Otherwise, we'd end up

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 9, 1:51 AM (7 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28299764
Default Alt Text
D38245.1775699463.diff (514 B)

Event Timeline