diff options
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index dd26d941e..e602c5e8e 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -1,6 +1,6 @@ /* path.cc: path support. - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. This file is part of Cygwin. @@ -185,13 +185,13 @@ pathmatch (const char *path1, const char *path2) : strcasematch (path1, path2); } +#define isslash(c) ((c) == '/') + /* Normalize a POSIX path. \'s are converted to /'s in the process. All duplicate /'s, except for 2 leading /'s, are deleted. The result is 0 for success, or an errno error value. */ -#define isslash(c) ((c) == '/') - static int normalize_posix_path (const char *src, char *dst) { @@ -368,7 +368,9 @@ fs_info::update (const char *win32_path) strncpy (root_dir_storage, tmp_buf, CYG_MAX_PATH); drive_type_storage = GetDriveType (root_dir_storage); - if (drive_type_storage == DRIVE_REMOTE || (drive_type_storage == DRIVE_UNKNOWN && (root_dir_storage[0] == '\\' && root_dir_storage[1] == '\\'))) + if (drive_type_storage == DRIVE_REMOTE + || (drive_type_storage == DRIVE_UNKNOWN + && (root_dir_storage[0] == '\\' && root_dir_storage[1] == '\\'))) is_remote_drive_storage = 1; else is_remote_drive_storage = 0; |