[network-manager-openswan/dcbw/cleanups: 14/17] Revert "Fixed an issue where writing configuration on stdin should not end with \n as it gives error
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openswan/dcbw/cleanups: 14/17] Revert "Fixed an issue where writing configuration on stdin should not end with \n as it gives error
- Date: Thu, 28 Aug 2014 22:52:58 +0000 (UTC)
commit ce32a9ef4d32409a01df5cc58076498f5f54042c
Author: Dan Williams <dcbw redhat com>
Date: Thu Aug 7 13:14:01 2014 -0500
Revert "Fixed an issue where writing configuration on stdin should not end with \n as it gives error. It
used to work previously, but not with latest versions."
This reverts commit e2aa41b86012963328d59550d7b82a19f1f79d2f.
The initial problem was likely not the lack of \n but a combination
of not waiting long enough for the child process to be ready, and
closing the stdin pipe too early.
src/nm-openswan-service.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-openswan-service.c b/src/nm-openswan-service.c
index 70b8efa..7f18e88 100644
--- a/src/nm-openswan-service.c
+++ b/src/nm-openswan-service.c
@@ -449,7 +449,7 @@ nm_openswan_config_write (gint fd,
write_config_option (fd, " salifetime=24h\n");
write_config_option (fd, " ikelifetime=24h\n");
write_config_option (fd, " keyingtries=1\n");
- write_config_option (fd, " auto=add");
+ write_config_option (fd, " auto=add\n");
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]