From 2f949727e49a65893b1ccb9539ed6421f219dfb9 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 21 Feb 2024 00:06:37 +0000 Subject: [PATCH] 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 --- hotplug-dispatch.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.30.2