aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-05 23:30:36 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-05 23:30:36 +0200
commit6b83fe245bf6745df4b2ae0ab5dda43e8632c50c (patch)
treef91aa165e6919d524e6e3641075f3fc3542249d7 /src
parente66b0fd8542e32f4cae113a5cbcf34be3b31129c (diff)
downloadlibpam-freerdp2-6b83fe245bf6745df4b2ae0ab5dda43e8632c50c.tar.gz
libpam-freerdp2-6b83fe245bf6745df4b2ae0ab5dda43e8632c50c.tar.bz2
libpam-freerdp2-6b83fe245bf6745df4b2ae0ab5dda43e8632c50c.zip
freerdp2-auth-check: Fix usage message and show it if argc is not 4.
Diffstat (limited to 'src')
-rw-r--r--src/freerdp2-auth-check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freerdp2-auth-check.c b/src/freerdp2-auth-check.c
index 219f434..542504f 100644
--- a/src/freerdp2-auth-check.c
+++ b/src/freerdp2-auth-check.c
@@ -51,9 +51,9 @@ int
main (int argc, char * argv[])
{
char password[512];
- if (argc != 5) {
+ if (argc != 4) {
printf("Not enough params\n\n");
- printf("Usage: freerdp-auth-check <host>[:<port>] <user> <domain> <password>\n\n");
+ printf("Usage: echo <passwd> | freerdp2-auth-check <host>[:<port>] <user> <domain>\n\n");
return -1;
}