diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-19 09:25:51 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2012-05-25 14:20:35 -0400 |
commit | 0ee0f825365d9bc71437b4990e81b0325f5774b3 (patch) | |
tree | 7740871e33f4f7b70a109087cf5361d4753c6956 /log.c | |
parent | 6cb95bc59e63f4a2c0c72ae3dfb27b94c0e8efbd (diff) | |
download | duser-0ee0f825365d9bc71437b4990e81b0325f5774b3.tar.gz |
'status' will return the failure of access() now
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |