diff options
| author | Daniel Golle | 2024-02-21 00:06:37 +0000 |
|---|---|---|
| committer | Daniel Golle | 2024-02-21 00:08:41 +0000 |
| commit | 2f949727e49a65893b1ccb9539ed6421f219dfb9 (patch) | |
| tree | 2e3b804d561ea1dc77a0e4ee3a46fa536e316ed0 | |
| parent | 7e6c6efd6fbcc7955801c5e2ac915a90697e1fd9 (diff) | |
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 <e9hack@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
| -rw-r--r-- | hotplug-dispatch.c | 3 |
1 files changed, 0 insertions, 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; |