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:
@@ -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
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user