diff options
| author | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-19 09:25:51 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-19 09:25:51 -0400 |
| commit | 211f1084936658650abc5ecdc44ac4561719d1d0 (patch) | |
| tree | 7740871e33f4f7b70a109087cf5361d4753c6956 | |
| parent | 2a204c75574354886fad6567375542a8c0fff921 (diff) | |
| download | duser-211f1084936658650abc5ecdc44ac4561719d1d0.tar.gz | |
'status' will return the failure of access() now
| -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); } |
