]> sjero.net Git - wget/commitdiff
Ensure that dir matches aren't mere prefix matches.
authorMicah Cowan <micah@cowan.name>
Wed, 23 Apr 2008 07:05:27 +0000 (00:05 -0700)
committerMicah Cowan <micah@cowan.name>
Wed, 23 Apr 2008 07:05:27 +0000 (00:05 -0700)
src/ChangeLog
src/utils.c

index 4cb560cc8cb6ee6dff08633ad9e3c6554746be43..543bfbc64c08e0bda378b0fa16fd96e7e9e8eade 100644 (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>
 
        * openssl.c (ssl_init): Enable combined certificate/key in
index a4928dabacea525261ba3806dd8f34d80f89ad6e..85a83355a6ace521faf8b84a283a20f3ae2c0fe7 100644 (file)
@@ -2205,6 +2205,8 @@ test_dir_matches_p()
     { { "*/*COMPLETE", NULL, NULL }, "foo/!COMPLETE", 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)