diff options
author | David Zeuthen <davidz@redhat.com> | 2009-07-27 10:03:34 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2009-07-27 10:03:34 -0400 |
commit | 01cee08d61c130918aca3c67b0d172b40aa9d10e (patch) | |
tree | 836a948d0079624ee09a341f9309a9b126d02ef0 | |
parent | de0985aaeb9a44090f3cb37e4ea6308c0152797a (diff) | |
download | polkit-01cee08d61c130918aca3c67b0d172b40aa9d10e.tar.gz |
Don't spawn man(1) from a setuid program
-rw-r--r-- | src/programs/pkexec.c | 17 |
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"); } /* ---------------------------------------------------------------------------------------------------- */ |