* fhandler_disk_file.cc (readdir_get_ino): Don't follow symlinks.

This commit is contained in:
Corinna Vinschen 2006-01-29 17:29:35 +00:00
parent 5369605f4f
commit edde4d4daf
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-01-29 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (readdir_get_ino): Don't follow symlinks.
2006-01-29 Corinna Vinschen <corinna@vinschen.de>
* fhandler.h (class fhandler_socket): Add saw_reuseaddr status flag.

View File

@ -1562,7 +1562,7 @@ readdir_get_ino (DIR *dir, const char *path, bool dot_dot)
if (dot_dot)
strcat (fname, (*fname && fname[strlen (fname) - 1] == '/')
? ".." : "/..");
path_conv pc (fname);
path_conv pc (fname, PC_SYM_NOFOLLOW);
if (pc.isspecial ())
{
if (!lstat64 (fname, &st))