70bf2c2
From 4b0e9fff27acec544615810138e678869fcdd280 Mon Sep 17 00:00:00 2001
70bf2c2
From: Nick Mathewson <nickm@torproject.org>
70bf2c2
Date: Thu, 10 Dec 2015 20:03:37 -0500
70bf2c2
Subject: [PATCH 5/5] Fix wide line; log why chmod failed.
70bf2c2
70bf2c2
---
70bf2c2
 src/or/config.c | 3 ++-
70bf2c2
 1 file changed, 2 insertions(+), 1 deletion(-)
70bf2c2
70bf2c2
diff --git a/src/or/config.c b/src/or/config.c
70bf2c2
index c6d4de3..7b42c9f 100644
70bf2c2
--- a/src/or/config.c
70bf2c2
+++ b/src/or/config.c
70bf2c2
@@ -1205,7 +1205,8 @@ options_act_reversible(const or_options_t *old_options, char **msg)
70bf2c2
   if (options->DataDirectoryGroupReadable) {
70bf2c2
     /* Only new dirs created get new opts, also enforce group read. */
70bf2c2
     if (chmod(options->DataDirectory, 0750)) {
70bf2c2
-      log_warn(LD_FS,"Unable to make %s group-readable.", options->DataDirectory);
70bf2c2
+      log_warn(LD_FS,"Unable to make %s group-readable: %s",
70bf2c2
+               options->DataDirectory, strerror(errno));
70bf2c2
     }
70bf2c2
   }
70bf2c2
 #endif
70bf2c2
-- 
70bf2c2
2.5.0
70bf2c2