* direntry.c (vfs_s_find_entry_tree): Canonicalize path.
Этот коммит содержится в:
родитель
e09739368e
Коммит
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;
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user