From 211f1084936658650abc5ecdc44ac4561719d1d0 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 19 Apr 2011 09:25:51 -0400 Subject: 'status' will return the failure of access() now --- log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'log.c') 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); } -- cgit