diff src/c/mhash.c @ 1155:042f618f7c77

Call access() with F_OK
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Feb 2010 08:35:47 -0500
parents 6249df767d4c
children 236dc296c32d
line wrap: on
line diff
--- 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) {