mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-27 20:54:37 +03:00
* direntry.c (vfs_s_find_entry_tree): Canonicalize path.
This commit is contained in:
parent
e09739368e
commit
274a5a1c41
@ -1,5 +1,7 @@
|
||||
2003-10-16 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* direntry.c (vfs_s_find_entry_tree): Canonicalize path.
|
||||
|
||||
* direntry.c (vfs_s_resolve_symlink): Don't use buffers of fixed
|
||||
size. This fixes a security hole. Always start from the root.
|
||||
Remove broken code for making symlinks relative.
|
||||
|
@ -263,6 +263,8 @@ vfs_s_find_entry_tree (struct vfs_class *me, struct vfs_s_inode *root,
|
||||
if (strlen(path) >= MC_MAXPATHLEN)
|
||||
return NULL;
|
||||
|
||||
canonicalize_pathname (path);
|
||||
|
||||
while (root) {
|
||||
int t;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user