[tor-commits] [tor/master] Fix wide line; log why chmod failed.
nickm at torproject.org
nickm at torproject.org
Fri Dec 11 01:04:10 UTC 2015
commit 4b0e9fff27acec544615810138e678869fcdd280
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Dec 10 20:03:37 2015 -0500
Fix wide line; log why chmod failed.
---
src/or/config.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/or/config.c b/src/or/config.c
index c6d4de3..7b42c9f 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1205,7 +1205,8 @@ options_act_reversible(const or_options_t *old_options, char **msg)
if (options->DataDirectoryGroupReadable) {
/* Only new dirs created get new opts, also enforce group read. */
if (chmod(options->DataDirectory, 0750)) {
- log_warn(LD_FS,"Unable to make %s group-readable.", options->DataDirectory);
+ log_warn(LD_FS,"Unable to make %s group-readable: %s",
+ options->DataDirectory, strerror(errno));
}
}
#endif
More information about the tor-commits
mailing list