* dir.cc (readdir): Fix creating path in symlink check.
This commit is contained in:
parent
75c566fc64
commit
ed94def22d
|
@ -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>
|
Fri Mar 2 12:33:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* dir.cc (readdir): Fix shortcut==symlink condition.
|
* dir.cc (readdir): Fix shortcut==symlink condition.
|
||||||
|
|
|
@ -184,7 +184,7 @@ readdir (DIR * dir)
|
||||||
{
|
{
|
||||||
char fbuf[MAX_PATH + 1];
|
char fbuf[MAX_PATH + 1];
|
||||||
strcpy (fbuf, dir->__d_dirname);
|
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);
|
path_conv fpath (fbuf, PC_SYM_NOFOLLOW);
|
||||||
if (fpath.issymlink ())
|
if (fpath.issymlink ())
|
||||||
c[len - 4] = '\0';
|
c[len - 4] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue