* dir.cc (readdir): Fix creating path in symlink check.

This commit is contained in:
Corinna Vinschen 2001-03-02 12:33:50 +00:00
parent 75c566fc64
commit ed94def22d
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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';