summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/mount.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-02-09 15:00:30 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-02-09 15:00:30 +0100
commit8b83da2d55b2a61f22b8b330f966d06e3092b079 (patch)
tree208f9ec5a3795dfbb66db34c90971be07cfa56e2 /winsup/cygwin/mount.h
parent9676aeef0d672fea93310df14d36c1c9904d0179 (diff)
downloadcygnal-8b83da2d55b2a61f22b8b330f966d06e3092b079.tar.gz
cygnal-8b83da2d55b2a61f22b8b330f966d06e3092b079.tar.bz2
cygnal-8b83da2d55b2a61f22b8b330f966d06e3092b079.zip
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>
Diffstat (limited to 'winsup/cygwin/mount.h')
-rw-r--r--winsup/cygwin/mount.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/mount.h b/winsup/cygwin/mount.h
index 172a0b03b..7219461ac 100644
--- a/winsup/cygwin/mount.h
+++ b/winsup/cygwin/mount.h
@@ -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,