Browse Source

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>
Daniel Golle 2 months ago
parent
commit
2f949727e4
1 changed files with 0 additions and 3 deletions
  1. 0 3
      hotplug-dispatch.c

+ 0 - 3
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;