append slash if there is one already.
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:
* path.cc (normalize_posix_path): Drop support for //./ and //?/
prefixes.
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);