summaryrefslogtreecommitdiff
path: root/src/c/mhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/mhash.c')
-rw-r--r--src/c/mhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/mhash.c b/src/c/mhash.c
index 91a3f78f..efaa9cf6 100644
--- a/src/c/mhash.c
+++ b/src/c/mhash.c
@@ -30,7 +30,7 @@ void uw_init_crypto() {
if (uw_sig_file) {
int fd;
- if (access(uw_sig_file, 0)) {
+ if (access(uw_sig_file, F_OK)) {
random_password();
if ((fd = open(uw_sig_file, O_WRONLY | O_CREAT, 0700)) < 0) {