changeset 1155:042f618f7c77

Call access() with F_OK
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Feb 2010 08:35:47 -0500
parents b0d632cc9edf
children b6111b688060
files src/c/mhash.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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) {