[network-manager-pptp] service: clear NM_DBUS_SERVICE_PPTP environment if called without --bus-name argument



commit 4c22dc74d6baa10feeb4a862db935e952adb8e80
Author: Thomas Haller <thaller redhat com>
Date:   Mon May 23 09:16:50 2016 +0200

    service: clear NM_DBUS_SERVICE_PPTP environment if called without --bus-name argument

 src/nm-pptp-service.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-pptp-service.c b/src/nm-pptp-service.c
index a9280fc..738ab6a 100644
--- a/src/nm-pptp-service.c
+++ b/src/nm-pptp-service.c
@@ -1120,6 +1120,8 @@ main (int argc, char *argv[])
 
        if (bus_name)
                setenv ("NM_DBUS_SERVICE_PPTP", bus_name, 0);
+       else
+               unsetenv ("NM_DBUS_SERVICE_PPTP");
 
        plugin = nm_pptp_plugin_new (bus_name);
        if (!plugin)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]