diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-31 11:57:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-31 11:57:56 -0400 |
commit | c0441cca8b483882f5676b98081f0fe4b52d3ae1 (patch) | |
tree | 0f6234deb72feb4de4c80ecbf4b0f0b0e89269f7 /src/or/config.c | |
parent | 4ebad0d947cbb74b674468e6601894468629f814 (diff) | |
parent | 3118af2d5fca7999a94d73690d83463ddacf9acb (diff) | |
download | tor-c0441cca8b483882f5676b98081f0fe4b52d3ae1.tar.gz tor-c0441cca8b483882f5676b98081f0fe4b52d3ae1.zip |
Merge branch 'bug8787_squashed'
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index da6aec0c16..909ac145a5 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -6458,7 +6458,10 @@ remove_file_if_very_old(const char *fname, time_t now) format_local_iso_time(buf, st.st_mtime); log_notice(LD_GENERAL, "Obsolete file %s hasn't been modified since %s. " "Removing it.", fname, buf); - unlink(fname); + if (unlink(fname) != 0) { + log_warn(LD_FS, "Failed to unlink %s: %s", + fname, strerror(errno)); + } } } |