2005-06-23 David Zeuthen <davidz@redhat.com>

* 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
This commit is contained in:
David Zeuthen
2005-06-23 19:47:07 +00:00
parent 56240ef587
commit b88cd2913d
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2005-06-23 David Zeuthen <davidz@redhat.com>
* 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 <davidz@redhat.com>
* properties/nm-vpnc.c (import_from_file): Allow "Description=" to be

View File

@@ -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);