Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108299649
D40479.id123018.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
496 B
Referenced Files
None
Subscribers
None
D40479.id123018.diff
View Options
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -717,6 +717,11 @@
cnp->cn_nameptr = cnp->cn_pnbuf;
if (*(cnp->cn_nameptr) == '/') {
vrele(dp);
+ /* Reset the lookup to start from the real root. */
+ if (__predict_false(ndp->ni_rootdir != pwd->pwd_rdir)) {
+ cnp->cn_flags |= ISRESTARTED;
+ ndp->ni_rootdir = pwd->pwd_rdir;
+ }
error = namei_handle_root(ndp, &dp);
if (error != 0)
goto out;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 4:23 PM (19 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16092048
Default Alt Text
D40479.id123018.diff (496 B)
Attached To
Mode
D40479: namei: Reset the lookup to start from the real root for abs symlink target
Attached
Detach File
Event Timeline
Log In to Comment