From b88cd2913d9d69f924bd9a639177fa68a5c87df2 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Thu, 23 Jun 2005 19:47:07 +0000 Subject: [PATCH] 2005-06-23 David Zeuthen * auth-dialog/main.c (main): Print two newlines when the passwords are dumped and wait for the parent to tell us on stdin to die. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@740 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- vpn-daemons/vpnc/ChangeLog | 5 +++++ vpn-daemons/vpnc/auth-dialog/main.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/vpn-daemons/vpnc/ChangeLog b/vpn-daemons/vpnc/ChangeLog index 4ac220308..2b0dc0bee 100644 --- a/vpn-daemons/vpnc/ChangeLog +++ b/vpn-daemons/vpnc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-23 David Zeuthen + + * auth-dialog/main.c (main): Print two newlines when the passwords + are dumped and wait for the parent to tell us on stdin to die. + 2005-06-23 David Zeuthen * properties/nm-vpnc.c (import_from_file): Allow "Description=" to be diff --git a/vpn-daemons/vpnc/auth-dialog/main.c b/vpn-daemons/vpnc/auth-dialog/main.c index 5ca7f6002..b87117b69 100644 --- a/vpn-daemons/vpnc/auth-dialog/main.c +++ b/vpn-daemons/vpnc/auth-dialog/main.c @@ -236,6 +236,7 @@ main (int argc, char *argv[]) { "service", 's', 0, G_OPTION_ARG_STRING, &vpn_service, "VPN service type", NULL}, { NULL } }; + char buf[1]; bindtextdomain (GETTEXT_PACKAGE, NULL); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); @@ -271,12 +272,16 @@ main (int argc, char *argv[]) char *password = (char *) i->data; printf ("%s\n", password); } + printf ("\n\n"); /* for good measure, flush stdout since Kansas is going Bye-Bye */ fflush (stdout); g_slist_foreach (passwords, (GFunc)g_free, NULL); g_slist_free (passwords); + /* wait for data on stdin */ + fread (buf, sizeof (char), sizeof (buf), stdin); + out: g_option_context_free (context);