aboutsummaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2011-04-19 09:25:51 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2012-05-25 14:20:35 -0400
commit0ee0f825365d9bc71437b4990e81b0325f5774b3 (patch)
tree7740871e33f4f7b70a109087cf5361d4753c6956 /log.c
parent6cb95bc59e63f4a2c0c72ae3dfb27b94c0e8efbd (diff)
downloadduser-0ee0f825365d9bc71437b4990e81b0325f5774b3.tar.gz
'status' will return the failure of access() now
Diffstat (limited to 'log.c')
-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);
}