tOpen /dev/null in write-only - safe - password protected secret keeper
(HTM) git clone git://git.z3bra.org/safe.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8d9b39bc139f4c6231c36190f30506367792156a
(DIR) parent 8b0d9811b499d09eca3f5718cd88844af2e9ecd3
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Mon, 3 Jun 2019 17:42:19 +0200
Open /dev/null in write-only
Diffstat:
M safe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/safe.c b/safe.c
t@@ -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");