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



commit 8354e2af906e6491c04c4361d4aba5df65fe3750
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 f145d17..817c5b9 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]