PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Tue Dec 15 11:05:19 PST 2009


 src/programs/pkexec.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 20385ae077e3c12bd6061e499c1e9bb7de46d479
Author: David Zeuthen <davidz at redhat.com>
Date:   Tue Dec 15 14:04:24 2009 -0500

    Complain on stderr, not stdout

diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c
index 979b359..860e665 100644
--- a/src/programs/pkexec.c
+++ b/src/programs/pkexec.c
@@ -427,21 +427,21 @@ main (int argc, char *argv[])
   /* check for correct invocation */
   if (geteuid () != 0)
     {
-      g_print ("pkexec must be setuid root\n");
+      g_printerr ("pkexec must be setuid root\n");
       goto out;
     }
 
   original_user_name = g_strdup (g_get_user_name ());
   if (original_user_name == NULL)
     {
-      g_print ("Error getting user name.\n");
+      g_printerr ("Error getting user name.\n");
       goto out;
     }
 
   original_cwd = g_strdup (get_current_dir_name ());
   if (original_cwd == NULL)
     {
-      g_print ("Error getting cwd.\n");
+      g_printerr ("Error getting cwd.\n");
       goto out;
     }
 


More information about the hal-commit mailing list