diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-06-29 10:43:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-06-29 10:43:50 -0400 |
commit | 2c718c1a12f06bdaa9c735a8d201c20b7ca4cfac (patch) | |
tree | e99fb90b8e8ab87d3d9ce819c473e4d5a4d1f4ad /src/common | |
parent | bb5968cae19d46eb4d45123146efacf0477a9d2c (diff) | |
parent | 0ac8f0bde92ef60d8863bbbcae42a6dc7c726b01 (diff) | |
download | tor-2c718c1a12f06bdaa9c735a8d201c20b7ca4cfac.tar.gz tor-2c718c1a12f06bdaa9c735a8d201c20b7ca4cfac.zip |
Merge branch 'maint-0.3.1'
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/storagedir.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/storagedir.c b/src/common/storagedir.c index 4405731884..31933f64c2 100644 --- a/src/common/storagedir.c +++ b/src/common/storagedir.c @@ -119,7 +119,8 @@ storage_dir_clean_tmpfiles(storage_dir_t *d) char *path = NULL; tor_asprintf(&path, "%s/%s", d->directory, fname); if (unlink(sandbox_intern_string(path))) { - log_warn(LD_FS, "Unable to unlink %s", escaped(path)); + log_warn(LD_FS, "Unable to unlink %s while cleaning " + "temporary files: %s", escaped(path), strerror(errno)); tor_free(path); continue; } @@ -455,7 +456,8 @@ storage_dir_remove_file(storage_dir_t *d, if (unlink(ipath) == 0) { storage_dir_reduce_usage(d, size); } else { - log_warn(LD_FS, "Unable to unlink %s", escaped(path)); + log_warn(LD_FS, "Unable to unlink %s while removing file: %s", + escaped(path), strerror(errno)); tor_free(path); return; } |