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);
d>June McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe 2022-02-18Implement new line editing "library"June McEnroe 2022-02-18Simplify cursor positioning in inputJune McEnroe 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe