* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Don't
append slash if there is one already.
This commit is contained in:
parent
ec58420870
commit
c48947b454
@ -1,3 +1,8 @@
|
||||
2011-02-15 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Don't
|
||||
append slash if there is one already.
|
||||
|
||||
2011-02-15 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
Revert change from 2010-08-31:
|
||||
|
@ -1831,7 +1831,8 @@ fhandler_disk_file::readdir_helper (DIR *dir, dirent *de, DWORD w32_err,
|
||||
tmp_pathbuf tp;
|
||||
char *file = tp.c_get ();
|
||||
char *p = stpcpy (file, pc.normalized_path);
|
||||
*p++ = '/';
|
||||
if (p[-1] != '/')
|
||||
*p++ = '/';
|
||||
sys_wcstombs (p, NT_MAX_PATH - (p - file),
|
||||
fname->Buffer, fname->Length / sizeof (WCHAR));
|
||||
path_conv fpath (file, PC_SYM_NOFOLLOW);
|
||||
|
Loading…
Reference in New Issue
Block a user