From: Daniel Golle Date: Wed, 21 Feb 2024 00:06:37 +0000 (+0000) Subject: hotplug-dispatch: don't filter empty env variables X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2f949727e49a65893b1ccb9539ed6421f219dfb9;p=project%2Fprocd.git hotplug-dispatch: don't filter empty env variables Empty environment variables are a valid case and are needed to override (or remove) existing variables such as HOSTNAME. Reported-by: Hartmut Birr Signed-off-by: Daniel Golle --- diff --git a/hotplug-dispatch.c b/hotplug-dispatch.c index f1ece38..4706085 100644 --- a/hotplug-dispatch.c +++ b/hotplug-dispatch.c @@ -241,9 +241,6 @@ static int hotplug_call(struct ubus_context *ctx, struct ubus_object *obj, continue; *tmp = '='; - if (!strlen(++tmp)) - continue; - if (!strcmp(enve, "ASYNC=0")) async = false;