Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 296641 Details for
Bug 435741
htdig doesn't give a proper error message when failing to execute external parser
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to fix htdig to give proper error message when external_parsers fails
htdig-3.2.0b6-extparser.patch (text/plain), 1.24 KB, created by
Gilles Detillieux
on 2008-03-03 17:08:36 UTC
(
hide
)
Description:
patch to fix htdig to give proper error message when external_parsers fails
Filename:
MIME Type:
Creator:
Gilles Detillieux
Created:
2008-03-03 17:08:36 UTC
Size:
1.24 KB
patch
obsolete
>--- htdig-3.2.0b6/htdig/ExternalParser.cc.orig 2004-05-28 08:15:14.000000000 -0500 >+++ htdig-3.0.0b6/htdig/ExternalParser.cc 2005-09-15 11:41:05.000000000 -0500 >@@ -227,7 +227,7 @@ ExternalParser::parse(Retriever &retriev > int get_file = (convertToType.length() != 0); > String newcontent; > >- StringList cpargs(currentParser); >+ StringList cpargs(currentParser, " \t"); > char **parsargs = new char * [cpargs.Count() + 5]; > int argi; > for (argi = 0; argi < cpargs.Count(); argi++) >@@ -280,7 +280,11 @@ ExternalParser::parse(Retriever &retriev > // Call External Parser > execv(parsargs[0], parsargs); > >- exit(EXIT_FAILURE); >+ perror("execv"); >+ write(STDERR_FILENO, "External parser error: Can't execute ", 37); >+ write(STDERR_FILENO, parsargs[0], strlen(parsargs[0])); >+ write(STDERR_FILENO, "\n", 1); >+ _exit(EXIT_FAILURE); > } > > // Parent Process >@@ -424,7 +428,7 @@ ExternalParser::parse(Retriever &retriev > { > metadatetags = new StringMatch(); > metadatetags->IgnoreCase(); >- metadatetags->Pattern("date|dc.date|dc.date.created|dc.data.modified"); >+ metadatetags->Pattern("date|dc.date|dc.date.created|dc.date.modified"); > } > > // <URL:http://www.w3.org/MarkUp/html-spec/html-spec_5.html#SEC5.2.5>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 435741
: 296641