diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-03-02 15:33:50 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-03-02 15:33:50 +0300 |
commit | ed94def22d4141379d3f21957655156db254e1ca (patch) | |
tree | a4a766c619e41ddd3d267ea431d1b1223a4b77d4 /winsup | |
parent | 75c566fc64d7557964facbacfb456e952f47027c (diff) |
* dir.cc (readdir): Fix creating path in symlink check.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/dir.cc | 2 |
2 files changed, 5 insertions, 1 deletions
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 <corinna@vinschen.de> + + * dir.cc (readdir): Fix creating path in symlink check. + Fri Mar 2 12:33:00 2001 Corinna Vinschen <corinna@vinschen.de> * 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'; |