summaryrefslogtreecommitdiff
path: root/src/sss_client
diff options
context:
space:
mode:
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/sudo_testcli/sudo_testcli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sss_client/sudo_testcli/sudo_testcli.c b/src/sss_client/sudo_testcli/sudo_testcli.c
index 50675f94..9786c02f 100644
--- a/src/sss_client/sudo_testcli/sudo_testcli.c
+++ b/src/sss_client/sudo_testcli/sudo_testcli.c
@@ -46,7 +46,7 @@ int main(int argc, char **argv)
uid_t uid = 0;
uint32_t error = 0;
- if (argc > 3) {
+ if (argc != 2 && argc != 3) {
fprintf(stderr, "Usage: sss_sudo_cli username [uid]\n");
goto fail;
}