diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-27 23:37:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-12-27 23:37:50 +0000 |
commit | f90d08a2b21bd02c7d721d69b47ecf31707a064a (patch) | |
tree | 8bafd34f49542adf1e8d2ff10cc13e1d3ecd7529 | |
parent | ea27272d1e554276d49f979421ab55dfd1f92289 (diff) |
spacing
-rw-r--r-- | usr.bin/skey/skey.c | 4 | ||||
-rw-r--r-- | usr.bin/skeyinit/skeyinit.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/skey/skey.c b/usr.bin/skey/skey.c index e5b0b36cbc5..a3b382c4fd6 100644 --- a/usr.bin/skey/skey.c +++ b/usr.bin/skey/skey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skey.c,v 1.20 2004/06/04 18:18:20 otto Exp $ */ +/* $OpenBSD: skey.c,v 1.21 2004/12/27 23:37:48 deraadt Exp $ */ /* * OpenBSD S/Key (skey.c) * @@ -120,7 +120,7 @@ main(int argc, char *argv[]) " logged in via telnet.\n", stderr); (void)fputs("Enter secret passphrase: ", stderr); readpass(passwd, sizeof(passwd)); - if (passwd[0] == '\0') + if (passwd[0] == '\0') exit(1); } diff --git a/usr.bin/skeyinit/skeyinit.c b/usr.bin/skeyinit/skeyinit.c index e2d0be9b4b0..93ffd12763e 100644 --- a/usr.bin/skeyinit/skeyinit.c +++ b/usr.bin/skeyinit/skeyinit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skeyinit.c,v 1.49 2004/09/14 22:58:57 deraadt Exp $ */ +/* $OpenBSD: skeyinit.c,v 1.50 2004/12/27 23:37:49 deraadt Exp $ */ /* OpenBSD S/Key (skeyinit.c) * @@ -424,7 +424,7 @@ normal_mode(char *username, int n, char *key, char *seed) (void)fputs("ERROR: Your passphrase may not be the " "same as your user name.\n", stderr); continue; - } else if (strspn(passwd, "abcdefghijklmnopqrstuvwxyz") == + } else if (strspn(passwd, "abcdefghijklmnopqrstuvwxyz") == strlen(passwd)) { (void)fputs("ERROR: Your passphrase must contain more " "than just lower case letters.\nWhitespace, " |