summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-07-27 10:03:34 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-07-27 10:03:34 -0400
commit01cee08d61c130918aca3c67b0d172b40aa9d10e (patch)
tree836a948d0079624ee09a341f9309a9b126d02ef0 /src
parentde0985aaeb9a44090f3cb37e4ea6308c0152797a (diff)
downloadpolkit-01cee08d61c130918aca3c67b0d172b40aa9d10e.tar.gz
Don't spawn man(1) from a setuid program
Diffstat (limited to 'src')
-rw-r--r--src/programs/pkexec.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c
index 10329dd..5121d21 100644
--- a/src/programs/pkexec.c
+++ b/src/programs/pkexec.c
@@ -37,18 +37,11 @@
static void
usage (int argc, char *argv[])
{
- GError *error;
-
- error = NULL;
- if (!g_spawn_command_line_sync ("man pkexec",
- NULL,
- NULL,
- NULL,
- &error))
- {
- g_printerr ("Cannot show manual page: %s\n", error->message);
- g_error_free (error);
- }
+ g_printerr ("pkexec --version |\n"
+ " --help |\n"
+ " [--user username] PROGRAM [ARGUMENTS...]\n"
+ "\n"
+ "See the pkexec manual page for more details.\n");
}
/* ---------------------------------------------------------------------------------------------------- */