1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Ensure that dir matches aren't mere prefix matches.

This commit is contained in:
Micah Cowan 2008-04-23 00:05:27 -07:00
parent 3c086872e9
commit 6c16fe9225
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-04-23 Micah Cowan <micah@cowan.name>
* utils.c (test_dir_matches_p): Added a test for the case
described in issue #20518.
2008-04-22 Jim Paris <jim@jtan.com> 2008-04-22 Jim Paris <jim@jtan.com>
* openssl.c (ssl_init): Enable combined certificate/key in * openssl.c (ssl_init): Enable combined certificate/key in

View File

@ -2205,6 +2205,8 @@ test_dir_matches_p()
{ { "*/*COMPLETE", NULL, NULL }, "foo/!COMPLETE", true }, { { "*/*COMPLETE", NULL, NULL }, "foo/!COMPLETE", true },
{ { "/dir with spaces", NULL, NULL }, "dir with spaces", true }, { { "/dir with spaces", NULL, NULL }, "dir with spaces", true },
{ { "/dir*with*spaces", NULL, NULL }, "dir with spaces", true }, { { "/dir*with*spaces", NULL, NULL }, "dir with spaces", true },
{ { "/Tmp/has", NULL, NULL }, "/Tmp/has space", false },
{ { "/Tmp/has", NULL, NULL }, "/Tmp/has,comma", false },
}; };
for (i = 0; i < countof(test_array); ++i) for (i = 0; i < countof(test_array); ++i)