From edde4d4daf29e3e1aad8ea1fbc467ba9d74551da Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 29 Jan 2006 17:29:35 +0000 Subject: [PATCH] * fhandler_disk_file.cc (readdir_get_ino): Don't follow symlinks. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_disk_file.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1886c3084..5ca014ca7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2006-01-29 Corinna Vinschen + + * fhandler_disk_file.cc (readdir_get_ino): Don't follow symlinks. + 2006-01-29 Corinna Vinschen * fhandler.h (class fhandler_socket): Add saw_reuseaddr status flag. diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index e6adca261..70dff5878 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -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))