[network-manager-openvpn] properties: set user/group during export to "nm-openvpn"
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn] properties: set user/group during export to "nm-openvpn"
- Date: Fri, 13 May 2016 22:00:31 +0000 (UTC)
commit 7a29507d93c612d54086d46a0af1c9acdd6ee492
Author: Thomas Haller <thaller redhat com>
Date: Fri May 13 23:55:04 2016 +0200
properties: set user/group during export to "nm-openvpn"
It doesn't really matter what we export because the user/group is
not stored in the connection, but part of the service configuration
-- which is not available when the library plugin exports a connection.
And neither is it imported from a ovpn file.
Anyway, the default user and group is "nm-openvpn", not "openvpn".
properties/import-export.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index 5f1da2a..ee8c104 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -1924,8 +1924,8 @@ do_export_create (NMConnection *connection, const char *path, GError **error)
args_write_line (f, NMV_OVPN_TAG_SCRIPT_SECURITY, "2");
args_write_line (f, NMV_OVPN_TAG_PERSIST_KEY);
args_write_line (f, NMV_OVPN_TAG_PERSIST_TUN);
- args_write_line (f, NMV_OVPN_TAG_USER, "openvpn");
- args_write_line (f, NMV_OVPN_TAG_GROUP, "openvpn");
+ args_write_line (f, NMV_OVPN_TAG_USER, NM_OPENVPN_USER);
+ args_write_line (f, NMV_OVPN_TAG_GROUP, NM_OPENVPN_GROUP);
return nm_unauto (&f);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]