Use isdirsep rather than SLASH_P throughout.
* path.cc (iscygdrive): Disallow /cygdrive\x. (normalize_posix_path): "Normalize" a windows path, if detected, rather than converting to posix. * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and capability checking for B230400 bitrate. (fhandler_serial::tcgetattr): Add support for B230400 bitrate. * include/sys/termios.h: Add B230400 definition for Posix support of 230.4Kbps.
This commit is contained in:
		| @@ -85,7 +85,7 @@ fhandler_process::exists () | ||||
|   const char *path = get_name (); | ||||
|   debug_printf ("exists (%s)", path); | ||||
|   path += proc_len + 1; | ||||
|   while (*path != 0 && !SLASH_P (*path)) | ||||
|   while (*path != 0 && !isdirsep (*path)) | ||||
|     path++; | ||||
|   if (*path == 0) | ||||
|     return 2; | ||||
| @@ -172,7 +172,7 @@ fhandler_process::open (path_conv *pc, int flags, mode_t mode) | ||||
|   const char *path; | ||||
|   path = get_name () + proc_len + 1; | ||||
|   pid = atoi (path); | ||||
|   while (*path != 0 && !SLASH_P (*path)) | ||||
|   while (*path != 0 && !isdirsep (*path)) | ||||
|     path++; | ||||
|  | ||||
|   if (*path == 0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user