FreeBSD Bugzilla – Attachment 189014 Details for
Bug 224426
fetch -i runs in an endless loop
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch to fetch to avoid endless loop
fetch_c.diff (text/plain), 606 bytes, created by
Zak
on 2017-12-21 20:21:15 UTC
(
hide
)
Description:
proposed patch to fetch to avoid endless loop
Filename:
MIME Type:
Creator:
Zak
Created:
2017-12-21 20:21:15 UTC
Size:
606 bytes
patch
obsolete
>diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c >index a37821f5f80..b81458dfa4a 100644 >--- a/usr.bin/fetch/fetch.c >+++ b/usr.bin/fetch/fetch.c >@@ -552,7 +552,9 @@ fetch(char *URL, const char *path) > goto signal; > if (f == NULL) { > warnx("%s: %s", URL, fetchLastErrString); >- if (i_flag && strcmp(url->scheme, SCHEME_HTTP) == 0 >+ if (i_flag >+ && ( strcmp(url->scheme, SCHEME_HTTP) == 0 >+ || strcmp(url->scheme, SCHEME_HTTPS) == 0) > && fetchLastErrCode == FETCH_OK > && strcmp(fetchLastErrString, "Not Modified") == 0) { > /* HTTP Not Modified Response, return OK. */
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 224426
: 189014