Dnia 6 września 2012 12:25 Bartek Szady <[email protected]> napisał(a):
> Cześć
> 
> W poldku 0.30-1.rc5.14.x86_64 przestała działać obsługa proxy (wpis w 
> poldek.conf: proxy = http,ftp: http://xx.yy.pl:3128)
> 
> Uruchomienie
> 
> poldek --upa --shell
> 
> Kończy się tak:
> 
> error: vfile: ftp://...: no external fetcher for this type of url found
> error: vfile: ftp://...: no external fetcher for this type of url found
> 
> error: vfile: ftp://...: no external fetcher for this type of url found
> error: vfile: ftp://...: no external fetcher for this type of url found
> 
> Poldek 0.30-1.rc5.11.x86_64 działał poprawnie.
> 

Prawdopodobnie kompilator zmienil przyzwyczajenia,
wczesniej dzialalo mimo ze nie powinno.

Mala poprawka w zalaczniku, jak mozesz to przetestuj ta latke:
http://gitorious.org/poldek/poldek/commit/f699361da17fc9094741d4b0c212e16d126bb01d

Pozdrawiam
Bartłomiej Zimoń
commit f699361da17fc9094741d4b0c212e16d126bb01d
Author: Bartlomiej Zimon <[email protected]>
Date:   Fri Sep 7 18:43:34 2012 +0200

    - fix proxy request generation - pbuf is used later if proxy is used
      maybe compilator related bug/feature?
    
    Signed-off-by: Bartlomiej Zimon <[email protected]>

diff --git a/vfile/vfreq.c b/vfile/vfreq.c
index 63ba26b..1875600 100644
--- a/vfile/vfreq.c
+++ b/vfile/vfreq.c
@@ -224,7 +224,7 @@ int vf_request_open_destpath(struct vf_request *req)
 
 struct vf_request *vf_request_new(const char *url, const char *destpath)
 {
-    char               buf[PATH_MAX], tmp[PATH_MAX], *escaped_uri;
+    char               buf[PATH_MAX], pbuf[PATH_MAX], tmp[PATH_MAX], *escaped_uri;
     const char         *proxy = NULL;
     char               *err_msg = _("%s: URL parse error\n");
     struct vf_request  *req, rreq, preq;
@@ -241,7 +241,6 @@ struct vf_request *vf_request_new(const char *url, const char *destpath)
     }
     
     if ((proxy = get_proxy(&rreq))) {
-        char pbuf[PATH_MAX];
 
         snprintf(pbuf, sizeof(pbuf), "%s", proxy);
         memset(&preq, 0, sizeof(preq));
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym