From b63a3f55a7f9d41faa73b15bfd1aca6aa178a20e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 17 Mar 2001 07:09:41 +0000 Subject: * dir.cc (readdir): Use strcasematch for consistency. * path.cc (symlink_info): Eliminate known_suffix. (path_conv::check): Always copy ext_here to end of buffer, if found. (suffix_scan): Eliminate ext_here, add suffixes_start. (suffix_scan::has): Eliminate an argument. Reorganize. Always return pointer to end of input path. (suffix_scan::next): Take a second pass through the suffix list looking for .lnk. (symlink_info::check): Eliminate known_suffix usage. --- winsup/cygwin/dir.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/dir.cc') diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index 3c10dfa73..fef678756 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -181,7 +181,7 @@ readdir (DIR * dir) { char *c = dir->__d_dirent->d_name; int len = strlen (c); - if (!strcasecmp (c + len - 4, ".lnk")) + if (strcasematch (c + len - 4, ".lnk")) { char fbuf[MAX_PATH + 1]; strcpy (fbuf, dir->__d_dirname); -- cgit v1.2.3