diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-02-07 08:35:47 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-02-07 08:35:47 -0500 |
commit | 5d405a6ab1bc7324a9417d84923481699321ef6a (patch) | |
tree | 3ed85b18e5efabeae6be92b24ac70794ea5fa34b /src/c | |
parent | a33ccc75788bd34fd6b61574b096fde2d85b7fd8 (diff) |
Call access() with F_OK
Diffstat (limited to 'src/c')
-rw-r--r-- | src/c/mhash.c | 2 |
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) { |