projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Linux 5.11-rc1
[linux-2.6-microblaze.git]
/
fs
/
namei.c
diff --git
a/fs/namei.c
b/fs/namei.c
index
03d0e11
..
78443a8
100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-2114,8
+2114,10
@@
static int link_path_walk(const char *name, struct nameidata *nd)
return PTR_ERR(name);
while (*name=='/')
name++;
- if (!*name)
+ if (!*name) {
+ nd->dir_mode = 0; // short-circuit the 'hardening' idiocy
return 0;
+ }
/* At this point we know we have a real path component. */
for(;;) {