X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fres.c;h=94d9769ddabeb7d53f5878de71f4a8dc3ff1ebba;hb=76780021d822779f839bbf85883292e15eb3f587;hp=34676128798dfa0b22eba42b75330b284d88aa46;hpb=462e643a7e31676eceda23e634241f7b4d2cd7bb;p=wget diff --git a/src/res.c b/src/res.c index 34676128..94d9769d 100644 --- a/src/res.c +++ b/src/res.c @@ -1,5 +1,5 @@ /* Support for Robot Exclusion Standard (RES). - Copyright (C) 2001, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of Wget. @@ -67,6 +67,8 @@ as that of the covered work. */ res_match_path, res_register_specs, res_get_specs, and res_retrieve_file. */ +#define USE_GNULIB_ALLOC + #include "wget.h" #include @@ -463,9 +465,9 @@ res_match_path (const struct robot_specs *specs, const char *path) if (matches (specs->paths[i].path, path)) { bool allowedp = specs->paths[i].allowedp; - DEBUGP (("%s path %s because of rule `%s'.\n", + DEBUGP (("%s path %s because of rule %s.\n", allowedp ? "Allowing" : "Rejecting", - path, specs->paths[i].path)); + path, quote (specs->paths[i].path))); return allowedp; } return true;