summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/programs/pkexec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c
index 96b1def..50de92c 100644
--- a/src/programs/pkexec.c
+++ b/src/programs/pkexec.c
@@ -549,6 +549,11 @@ main (int argc, char *argv[])
goto out;
}
+ if (opt_user != NULL)
+ {
+ g_printerr ("--user specified twice\n");
+ goto out;
+ }
opt_user = g_strdup (argv[n]);
}
else if (strcmp (argv[n], "--disable-internal-agent") == 0)