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

Handle --no-parent correctly when path is /.

This commit is contained in:
Micah Cowan 2007-12-05 20:56:23 -08:00
parent 462e643a7e
commit 5114aa2d07
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-12-05 Micah Cowan <micah@cowan.name>
* utils.c (subdir_p): Handle the case where d1 is "".
2007-11-28 Micah Cowan <micah@cowan.name>
* Makefile.am, cmpt.c, connect.c, connect.h, convert.c,

View File

@ -677,6 +677,8 @@ acceptable (const char *s)
bool
subdir_p (const char *d1, const char *d2)
{
if (*d1 == '\0')
return true;
if (!opt.ignore_case)
for (; *d1 && *d2 && (*d1 == *d2); ++d1, ++d2)
;