Index | Thread | Search

From:
Kirill A. Korinsky <kirill@korins.ky>
Subject:
Re: sysupgrade/ftp: use a 'needle' to poke through caching layers
To:
Job Snijders <job@openbsd.org>
Cc:
tech@openbsd.org
Date:
Thu, 02 May 2024 21:34:37 +0200

Download raw body.

Thread
On Thu, 02 May 2024 20:40:52 +0200,
Job Snijders <job@openbsd.org> wrote:
> 
> diff -u -p -r1.98 util.c
> --- usr.bin/ftp/util.c	8 Mar 2023 04:43:11 -0000	1.98
> +++ usr.bin/ftp/util.c	2 May 2024 18:38:24 -0000
> @@ -786,6 +786,8 @@ progressmeter(int flag, const char *file
>  			free(title);
>  			title = strdup(filename);
>  		}
> +		if (clipqs && title != NULL)
> +			title[strcspn(title, "?")] = '\0';
>  		free(filenamebuf);
>  	}
>  

A kind of nickpiking:
1. ';' can be also used as separator
2. and everything after '#' might be ignored as well

-- 
wbr, Kirill