* direntry.c (vfs_s_find_entry_tree): Canonicalize path.

This commit is contained in:
Pavel Roskin 2003-10-17 03:25:43 +00:00
parent e09739368e
commit 274a5a1c41
2 changed files with 4 additions and 0 deletions

View File

@ -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.

View File

@ -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;