Menu

#44 htpurge does not accept '-u' flag

resolved
closed-fixed
httools (7)
5
2001-06-06
2001-06-06
Anonymous
No

As described in the manual and in the program help, the
'-u' option expects an URL to be purged. However in
the last public version 3.2b3 (and in the May 20
snapshot too),
this option is not recognized.

Looking at the sources, seems to be a missing
declaration
in the getopt call. So, I think the following patch can
correct
this:

--- htdig-3.2.0b4-052001/httools/htpurge.cc~ Sun May
20 04:13:54 2001
+++ htdig-3.2.0b4-052001/httools/htpurge.cc Tue
Jun 5 23:35:02 2001
@@ -54,7 +54,7 @@
Dictionary *discard_ids = 0;
Dictionary *discard_urls = new Dictionary;

- while ((c = getopt(ac, av, "vc:a")) != -1)
+ while ((c = getopt(ac, av, "vc:au:")) != -1)
{
switch (c)
{

Discussion

  • Gilles Detillieux

    • milestone: --> resolved
    • assigned_to: nobody --> grdetil
    • status: open --> closed-fixed
     
  • Gilles Detillieux

    Logged In: YES
    user_id=149687

    Fixed in CVS now. Thanks for the patch.

     

Log in to post a comment.