# HG changeset patch # User Adam Chlipala # Date 1265549747 18000 # Node ID 042f618f7c773dbfe3b204f763113bdcc0a49283 # Parent b0d632cc9edf5bc16b35c4765302714b176caa1b Call access() with F_OK diff -r b0d632cc9edf -r 042f618f7c77 src/c/mhash.c --- a/src/c/mhash.c Sat Feb 06 20:47:23 2010 -0500 +++ b/src/c/mhash.c Sun Feb 07 08:35:47 2010 -0500 @@ -30,7 +30,7 @@ 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) {