From ed94def22d4141379d3f21957655156db254e1ca Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 2 Mar 2001 12:33:50 +0000 Subject: [PATCH] * dir.cc (readdir): Fix creating path in symlink check. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/dir.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 111e0ce54..3e6b8b351 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 2 13:32:00 2001 Corinna Vinschen + + * dir.cc (readdir): Fix creating path in symlink check. + Fri Mar 2 12:33:00 2001 Corinna Vinschen * dir.cc (readdir): Fix shortcut==symlink condition. diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index 29d8084cb..aa4092b95 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -184,7 +184,7 @@ readdir (DIR * dir) { char fbuf[MAX_PATH + 1]; strcpy (fbuf, dir->__d_dirname); - strcat (fbuf + strlen (fbuf) - 1, dir->__d_dirent->d_name); + strcpy (fbuf + strlen (fbuf) - 1, dir->__d_dirent->d_name); path_conv fpath (fbuf, PC_SYM_NOFOLLOW); if (fpath.issymlink ()) c[len - 4] = '\0';