Commit 01cee08d authored by David Zeuthen's avatar David Zeuthen

Don't spawn man(1) from a setuid program

parent de0985aa
......@@ -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");
}
/* ---------------------------------------------------------------------------------------------------- */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment