[network-manager-openswan/dcbw/cleanups: 14/20] Revert "Fixed an issue where writing configuration on stdin should not end with \n as it gives error



commit 1ccf5fd4b1a047ee89fa38dad7a7f73e9aa3873b
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]