diff options
author | teor <teor2345@gmail.com> | 2016-11-18 14:34:42 +1100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-01 09:51:19 -0500 |
commit | 1e8f68a9c7fa20884de06a37109df558268e57f8 (patch) | |
tree | 79c876cfe4fb215a7e7c935f0ce4c2f303a2270b /src/common/util.c | |
parent | 5efbd41daa874154025c9cc8cbe65763f08306bc (diff) | |
download | tor-1e8f68a9c7fa20884de06a37109df558268e57f8.tar.gz tor-1e8f68a9c7fa20884de06a37109df558268e57f8.zip |
Add an extra warning message to check_private_dir
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c index 3421d117b0..417aa89433 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -2270,10 +2270,14 @@ check_private_dir,(const char *dirname, cpd_check_t check, * permissions on the directory will be checked again below.*/ fd = open(sandbox_intern_string(dirname), O_NOFOLLOW); - if (fd == -1) + if (fd == -1) { + log_warn(LD_FS, "Could not reopen recently created directory %s: %s", + dirname, + strerror(errno)); return -1; - else + } else { close(fd); + } } else if (!(check & CPD_CHECK)) { log_warn(LD_FS, "Directory %s does not exist.", dirname); |