safe

Password protected secret keeper
git clone git://git.z3bra.org/safe.git
Log | Files | Refs | README | LICENSE

commit 2ff98df8a471e3752443373548ba39abab46dd58
parent 7f1ba4677e4809b337e4224c714671a154cae185
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon,  3 Jun 2019 17:50:24 +0200

Add missing libsodium initialisation (WTF?)

Diffstat:
safe.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/safe.c b/safe.c @@ -417,6 +417,9 @@ main(int argc, char *argv[]) if (argc != 1 && !dflag) usage(); + if (sodium_init() < 0) + return -1; + if (safe) { mkdir(safe, 0700); if (chdir(safe) < 0)