diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-05 23:30:36 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-05 23:30:36 +0200 |
commit | 6b83fe245bf6745df4b2ae0ab5dda43e8632c50c (patch) | |
tree | f91aa165e6919d524e6e3641075f3fc3542249d7 | |
parent | e66b0fd8542e32f4cae113a5cbcf34be3b31129c (diff) | |
download | libpam-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.
-rw-r--r-- | src/freerdp2-auth-check.c | 4 |
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; } |