diff options
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r-- | winsup/cygwin/fhandler_process.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index b64f22175..0f0adc059 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -107,12 +107,12 @@ fhandler_process::exists () return 2; for (int i = 0; process_listing[i]; i++) - if (pathmatch (path + 1, process_listing[i])) + if (!strcmp (path + 1, process_listing[i])) { fileid = i; return is_symlink (i) ? -2 : (i == PROCESS_FD) ? 1 : -1; } - if (pathnmatch (strchr (path, '/') + 1, "fd/", 3)) + if (!strncmp (strchr (path, '/') + 1, "fd/", 3)) { fileid = PROCESS_FD; if (fill_filebuf ()) @@ -270,8 +270,8 @@ fhandler_process::open (int flags, mode_t mode) process_file_no = -1; for (int i = 0; process_listing[i]; i++) { - if (path_prefix_p - (process_listing[i], path + 1, strlen (process_listing[i]))) + if (path_prefix_p (process_listing[i], path + 1, + strlen (process_listing[i]), false)) process_file_no = i; } if (process_file_no == -1) |