Patch to nALFS

Vassili Dzuba vassilidzuba at nerim.net
Sat Mar 8 02:46:29 PST 2003


Hello,


On Sat, 08 Mar 2003 01:07:41 +0100
curd <curd at pandora.be> wrote:

[snip]
> Hi,
> 
> First of all, apologies for the wrapping, I can't get mozilla to do it 
> properly
> (tried what they say here: 
> http://bugzilla.mozilla.org/attachment.cgi?id=115240&action=view,
> but that doesn't help apparently). If anyone knows how to do it 
> properly, please let me know.
> 
> This is a great feature, but it didn't work for me.
> The filename was displayed properly in the profile,
> but the file that was being fetched (I use wget), had some
> funny characters appended to it.
> Now my knowledge of C is very limited to say the least, but figuring 
> that there was
> maybe something wrong with the wget routine, I managed to get it working
> like this:
> 
> --- new-download.c.orig 2003-03-08 00:31:34.000000000 +0100
> +++ new-download.c      2003-03-08 00:26:54.000000000 +0100
> @@ -211,12 +211,12 @@
>  #ifdef HAVE_LIBCURL
>         status = load_url(file, url);
>  #else
> -       status = execute_command("wget --progress=dot -O %s %s%s", file, 
> url);
> +       status = execute_command("wget --progress=dot -O %s %s", file, url);
>  #endif
>  
>         if (status) {
>                 Nprint_h_err("Getting url failed:");
> -               Nprint_h_err("    %s%s", url);
> +               Nprint_h_err("    %s", url);
>  
>                 /* TODO: Should we delete the broken archive here? */

Yes, that's a bug. I've put the corrected version on the site.
Thanks for noticing it,

Vassili

>  
> 
> Is this me (it's 1am) or is this a bug?
> Anyway thanks for the efforts, this is turning out a great tool!
> I'm trying to pick up a little C, and this seems a good project to start
> learning ;o)
> 
> Cheers,
> 
> -- 
> Wim Van Dijck
> When things go well, expect something to explode, erode, collapse or 
> just disappear.
> 
> -- 
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe alfs-discuss' in the subject header of the message
> 
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe alfs-discuss' in the subject header of the message



More information about the alfs-discuss mailing list