cygwin_conv_path: Really always preserve trailing slash in conversion to POSIX path
* mount.cc (mount_info::conv_to_posix_path): Account for scenarios where the path is identical to a mount point in terms of preserving the trailing slash in the output. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
7eb13b33e4
commit
4c59f62ef9
|
@ -959,7 +959,7 @@ mount_info::conv_to_posix_path (const char *src_path, char *posix_path,
|
|||
if ((mi.posix_pathlen + (pathbuflen - mi.native_pathlen) + addslash) >= NT_MAX_PATH)
|
||||
return ENAMETOOLONG;
|
||||
strcpy (posix_path, mi.posix_path);
|
||||
if (addslash)
|
||||
if (addslash || (!nextchar && append_slash))
|
||||
strcat (posix_path, "/");
|
||||
if (nextchar)
|
||||
slashify (p,
|
||||
|
|
Loading…
Reference in New Issue