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 | 7b914eb570020fe82a7861c06110c3cdc0d9689e (patch) | |
tree | 3ed85b18e5efabeae6be92b24ac70794ea5fa34b | |
parent | 97ebcb517f30f8f46f174aa9847f02a59a330adc (diff) |
Call access() with F_OK
-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) { |