* fhandler_disk_file.cc (readdir_get_ino): Don't follow symlinks.
This commit is contained in:
parent
5369605f4f
commit
edde4d4daf
|
@ -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.
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue