[PATCH v4 04/16] keytoc: remove duplicate __ENV__ check

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Sep 26 23:59:30 PDT 2024


On 13.09.24 09:59, Sascha Hauer wrote:
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>

Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>

> ---
>  scripts/keytoc.c | 11 -----------
>  1 file changed, 11 deletions(-)
> 
> diff --git a/scripts/keytoc.c b/scripts/keytoc.c
> index b140160688..ecb33cbe47 100644
> --- a/scripts/keytoc.c
> +++ b/scripts/keytoc.c
> @@ -664,17 +664,6 @@ int main(int argc, char *argv[])
>  		*path = 0;
>  		path++;
>  
> -		if (!strncmp(path, "__ENV__", 7)) {
> -			const char *orig_path = path;
> -
> -			path = getenv(orig_path + 7);
> -			if (!path) {
> -				fprintf(stderr, "%s doesn't contain a path\n",
> -					orig_path + 7);
> -				exit(1);
> -			}
> -		}
> -
>  		ret = gen_key(keyname, path);
>  		if (ret)
>  			exit(1);


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list