aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2011-04-19 09:25:51 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2011-04-19 09:25:51 -0400
commit211f1084936658650abc5ecdc44ac4561719d1d0 (patch)
tree7740871e33f4f7b70a109087cf5361d4753c6956
parent2a204c75574354886fad6567375542a8c0fff921 (diff)
downloadduser-211f1084936658650abc5ecdc44ac4561719d1d0.tar.gz
'status' will return the failure of access() now
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index 82f99b5..c0c1051 100644
--- a/log.c
+++ b/log.c
@@ -35,7 +35,7 @@ extern char logfile[PATH_MAX];
int logcleanup()
{
int status = 0;
- if((access(logfile, W_OK)) == 0)
+ if((status = access(logfile, W_OK)) == 0)
{
status = unlink(logfile);
}