[network-manager-pptp] service: clear NM_DBUS_SERVICE_PPTP environment if called without --bus-name argument
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-pptp] service: clear NM_DBUS_SERVICE_PPTP environment if called without --bus-name argument
- Date: Mon, 23 May 2016 07:18:17 +0000 (UTC)
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]