safe

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

commit 8d9b39bc139f4c6231c36190f30506367792156a
parent 8b0d9811b499d09eca3f5718cd88844af2e9ecd3
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon,  3 Jun 2019 17:42:19 +0200

Open /dev/null in write-only

Diffstat:
safe.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/safe.c b/safe.c @@ -323,7 +323,7 @@ check_master(struct safe *s) { int r, fd; - fd = open("/dev/null", O_RDONLY); + fd = open("/dev/null", O_WRONLY); if (fd < 0) err(1, "/dev/null");