summaryrefslogtreecommitdiff
path: root/src/app/config/confparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-06-21 10:17:59 -0400
committerNick Mathewson <nickm@torproject.org>2019-06-25 12:51:25 -0400
commitf3330d2be3de287d4b15bd4d9b0e86fab3ffb9fd (patch)
tree5604cac45323391243f4134ef8fa6975b520c7ed /src/app/config/confparse.c
parenta7835202cf871f68854494df904058a6e644c0b0 (diff)
downloadtor-f3330d2be3de287d4b15bd4d9b0e86fab3ffb9fd.tar.gz
tor-f3330d2be3de287d4b15bd4d9b0e86fab3ffb9fd.zip
Make "invisibility" and "undumpability" properties of variables.
Previously, these were magical things that we detected by checking whether a variable's name was prefixed with two or three underscores.
Diffstat (limited to 'src/app/config/confparse.c')
-rw-r--r--src/app/config/confparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/confparse.c b/src/app/config/confparse.c
index 0d19974d70..450ff5e083 100644
--- a/src/app/config/confparse.c
+++ b/src/app/config/confparse.c
@@ -642,7 +642,7 @@ config_dump(const config_format_t *fmt, const void *default_options,
continue;
}
/* Don't save 'hidden' control variables. */
- if (!strcmpstart(fmt->vars[i].member.name, "__"))
+ if (fmt->vars[i].flags & CVFLAG_NODUMP)
continue;
if (minimal && config_is_same(fmt, options, defaults,
fmt->vars[i].member.name))