summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-02-07 08:35:47 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-02-07 08:35:47 -0500
commit5d405a6ab1bc7324a9417d84923481699321ef6a (patch)
tree3ed85b18e5efabeae6be92b24ac70794ea5fa34b /src/c
parenta33ccc75788bd34fd6b61574b096fde2d85b7fd8 (diff)
Call access() with F_OK
Diffstat (limited to 'src/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) {