1
1

* direntry.c (vfs_s_find_entry_tree): Canonicalize path.

Этот коммит содержится в:
Pavel Roskin 2003-10-17 03:25:43 +00:00
родитель e09739368e
Коммит 274a5a1c41
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

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