[network-manager-openswan/dcbw/cleanups: 16/27] 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: 16/27] Revert "Fixed an issue where writing configuration on stdin should not end with \n as it gives error
- Date: Thu, 2 Oct 2014 19:13:33 +0000 (UTC)
commit ecb8eb0a3112b390cbca7f70078727a576ac16a8
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 de6e3ea..e579388 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");
close (fd);
sleep (3);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]