cygwin_conv_path: Always preserve trailing backslashes in conversion to POSIX paths
* include/sys/cygwin.h (CCP_CONVFLAGS_MASK): Define. * mount.h (__CCP_APP_SLASH): Define. * mount.cc (mount_info::conv_to_posix_path): Handle __CCP_APP_SLASH flag. * path.cc (cygwin_conv_path): Use CCP_CONVFLAGS_MASK to evaluate "how" flag values. Always add __CCP_APP_SLASH flag when calling mount_info::conv_to_posix_path. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -12,6 +12,10 @@ details. */
|
||||
#ifndef _MOUNT_H
|
||||
#define _MOUNT_H
|
||||
|
||||
#define __CCP_APP_SLASH 0x10000000 /* Internal flag for conv_to_posix_path.
|
||||
always append slash, even if path
|
||||
is "X:\\" only. */
|
||||
|
||||
enum disk_type
|
||||
{
|
||||
DT_NODISK,
|
||||
|
Reference in New Issue
Block a user