summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-08 20:56:12 -0500
committerJune McEnroe <june@causal.agency>2019-11-08 20:56:12 -0500
commit13fdf558c76b71f95776fbc4460f5651ad64dafe (patch)
tree26f5ce2e69ce83526854b4a5585012dde1ed45ce
parentAvoid calling getopt_long again after it returns -1 (diff)
downloadpounce-13fdf558c76b71f95776fbc4460f5651ad64dafe.tar.gz
pounce-13fdf558c76b71f95776fbc4460f5651ad64dafe.zip
Check that password is hashed
-rw-r--r--bounce.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bounce.c b/bounce.c
index c174249..bc97cf3 100644
--- a/bounce.c
+++ b/bounce.c
@@ -322,6 +322,9 @@ int main(int argc, char *argv[]) {
 	if (!user) user = nick;
 	if (!real) real = nick;
 	if (!clientAway) clientAway = "pounced :3";
+	if (clientPass && clientPass[0] != '$') {
+		errx(EX_CONFIG, "password must be hashed with -x");
+	}
 
 	ringAlloc(ringSize);
 	if (savePath) saveLoad(savePath);
mit/Makefile?h=2063.93&id=cac3f7de51e425f914a96270c2fa92b84ffd205f&follow=1'>Add version number generatorJune McEnroe 2021-08-22Add ISC license headerJune McEnroe 2021-08-22Update to Linux man-pages 5.12Štěpán Němec 2021-06-21Add manuals for macOS 11.3June McEnroe 2021-05-08Update to OpenBSD 6.9June McEnroe 2021-04-26Update to Linux man-pages 5.11June McEnroe 2021-04-26Update to FreeBSD 13.0June McEnroe 2021-01-27Completely rewrite how manuals are fetched and installedJune McEnroe 2020-12-14Update to man-pages-posix 2017-aJune McEnroe 2020-12-14Update to OpenBSD 6.8June McEnroe 2020-12-14Update to NetBSD 9.1June McEnroe 2020-12-14Update to man-pages 5.09June McEnroe 2020-12-14Update to FreeBSD 12.2June McEnroe 2020-06-08Update to OpenBSD 6.7June McEnroe 2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe 2020-05-04Don't clear MANSECTJune McEnroe