mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 04:19:21 +08:00
* 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>
|
||||
|
||||
* dir.cc (readdir): Fix shortcut==symlink condition.
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user