mirror of
https://github.com/mirror/wget.git
synced 2025-03-13 11:20:19 +08:00
Handle --no-parent correctly when path is /.
This commit is contained in:
parent
462e643a7e
commit
5114aa2d07
@ -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>
|
2007-11-28 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* Makefile.am, cmpt.c, connect.c, connect.h, convert.c,
|
* Makefile.am, cmpt.c, connect.c, connect.h, convert.c,
|
||||||
|
@ -677,6 +677,8 @@ acceptable (const char *s)
|
|||||||
bool
|
bool
|
||||||
subdir_p (const char *d1, const char *d2)
|
subdir_p (const char *d1, const char *d2)
|
||||||
{
|
{
|
||||||
|
if (*d1 == '\0')
|
||||||
|
return true;
|
||||||
if (!opt.ignore_case)
|
if (!opt.ignore_case)
|
||||||
for (; *d1 && *d2 && (*d1 == *d2); ++d1, ++d2)
|
for (; *d1 && *d2 && (*d1 == *d2); ++d1, ++d2)
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user