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