summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-08-10 18:05:20 +0000
committerNick Mathewson <nickm@torproject.org>2005-08-10 18:05:20 +0000
commit16528aa0704501b3dff39a193f5320a809340e3c (patch)
tree73177f65871dd582af4c4e0ab59738c8a8bdac5c /src/or/control.c
parentc031d14633187038cb3032d557daa64378c54fac (diff)
downloadtor-16528aa0704501b3dff39a193f5320a809340e3c.tar.gz
tor-16528aa0704501b3dff39a193f5320a809340e3c.zip
Add a config-file GETINFO entry; fix a minor memory leak on some SAVECONF calls.
svn:r4761
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 7fd4698274..24dda54163 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1150,6 +1150,8 @@ handle_getinfo_helper(const char *question, char **answer)
*answer = NULL; /* unrecognized key by default */
if (!strcmp(question, "version")) {
*answer = tor_strdup(VERSION);
+ } else if (!strcmp(question, "config-file")) {
+ *answer = tor_strdup(get_torrc_fname());
} else if (!strcmpstart(question, "accounting/")) {
return accounting_getinfo_helper(question, answer);
} else if (!strcmpstart(question, "helper-nodes")) {