package websec
tag 349024 + patch
thanks

Charles Fry wrote:
> After first installing websec, I tried running it prior to creating a
> url.list and it simply hung. It should at least be able to fail cleanly
> and tell me that it needs a url.list. :-)

Yes, that's pretty dumb. I've committed a fix in the upstream repository
and it will be in the next version.

The patch is between revisions 182 and 184:
Index: websec
===================================================================
--- websec      (revision 182)
+++ websec      (revision 184)
@@ -143,8 +143,14 @@
 # Default return code
 $rc = 0;

-open ARGV, $base . "/" . "$urllist" unless exists $ARGV[0];
+my $urllistfile = $base . "/" . "$urllist";
+if (! -e $urllistfile) {
+    print STDERR "Missing config file $urllistfile, Exiting.\n";
+    exit 1;
+}

+open ARGV, "$urllistfile" unless exists $ARGV[0];
+
 # Loop through input file and process all sites listed
 while (<>) {
     chop $_;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to