[network-manager-openswan] auth-dialog: use fprintf() not g_warning()



commit 3e30147fe798be0e8d546d3fd047abbf1697574d
Author: Dan Williams <dcbw redhat com>
Date:   Mon Jul 18 13:26:05 2011 -0500

    auth-dialog: use fprintf() not g_warning()
    
    We want to  make sure errors go to stderr, not anywhere else, so that
    they show up in ~/.xsession errors instead of possibly the reply's
    output where it  might get  mixed up with passwords.

 auth-dialog/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 8a08150..ba75d86 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -279,7 +279,7 @@ main (int argc, char *argv[])
 	g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
 
 	if (!g_option_context_parse (context, &argc, &argv, &error)) {
-		g_warning ("Error parsing options: %s\n", error->message);
+		fprintf (stderr, "Error parsing options: %s\n", error->message);
 		g_error_free (error);
 		return 1;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]