summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-12-15 14:04:24 -0500
committerDavid Zeuthen <davidz@redhat.com>2009-12-15 14:04:24 -0500
commit20385ae077e3c12bd6061e499c1e9bb7de46d479 (patch)
tree2d384a0146dcd2c7f0873f7fd33a06d1e62645a9
parent3cdc7448e545b0c334f38a443c944f214862a650 (diff)
downloadpolkit-20385ae077e3c12bd6061e499c1e9bb7de46d479.tar.gz
Complain on stderr, not stdout
-rw-r--r--src/programs/pkexec.c6
1 files changed, 3 insertions, 3 deletions
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;
}