* direntry.c (vfs_s_find_entry_linear): Canonicalize path before searching

This commit is contained in:
Pavel Roskin 2002-07-26 21:58:43 +00:00
parent 18c160fefa
commit e66ab47cf1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-07-26 Pavel Roskin <proski@gnu.org>
* direntry.c (vfs_s_find_entry_linear): Canonicalize path before
searching.
2002-07-25 Andrew V. Samoilov <kai@cmail.ru> 2002-07-25 Andrew V. Samoilov <kai@cmail.ru>
* xdirentry.h (vfs_s_fh.u.fish): Add append field. * xdirentry.h (vfs_s_fh.u.fish): Add append field.
@ -8,7 +13,7 @@
* mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of * mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
file to fix compilation. file to fix compilation.
(main): Add mad_init() and mad_finalize(). (main): Add mad_init() and mad_finalize().
2002-07-19 Pavel Roskin <proski@gnu.org> 2002-07-19 Pavel Roskin <proski@gnu.org>
* ftpfs.c: Don't use SUP.home, use SUP.cwdir. * ftpfs.c: Don't use SUP.home, use SUP.cwdir.

View File

@ -282,6 +282,8 @@ vfs_s_find_entry_linear (vfs *me, vfs_s_inode *root, char *path, int follow, int
if (root->super->root != root) if (root->super->root != root)
vfs_die ("We have to use _real_ root. Always. Sorry." ); vfs_die ("We have to use _real_ root. Always. Sorry." );
canonicalize_pathname (path);
if (!(flags & FL_DIR)){ if (!(flags & FL_DIR)){
char *dirname, *name, *save; char *dirname, *name, *save;
vfs_s_inode *ino; vfs_s_inode *ino;