aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-01-25 14:08:13 -0500
committerNick Mathewson <nickm@torproject.org>2011-01-25 14:08:13 -0500
commita1073ee956021ead19d30c2151510dbaced416a8 (patch)
tree3bc83acd9862373f78a59dc9560769c91978b6fe /src
parentef6fa07e4830dde86fce2d06bf9da44d5c1c79b9 (diff)
downloadtor-a1073ee956021ead19d30c2151510dbaced416a8.tar.gz
tor-a1073ee956021ead19d30c2151510dbaced416a8.zip
Simplest fix to bug2402: do not include SVN versions
When we stopped using svn, 0.2.1.x lost the ability to notice its svn revision and report it in the version number. However, it kept looking at the micro-revision.i file... so if you switched to master, built tor, then switched to 0.2.1.x, you'd get a micro-revision.i file from master reported as an SVN tag. This patch takes out the "include the svn tag" logic entirely. Bugfix on 0.2.1.15-rc; fixes bug 2402.
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/or/config.c b/src/or/config.c
index f8cfd29f84..c5d654078e 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -827,16 +827,7 @@ static char *_version = NULL;
const char *
get_version(void)
{
- if (_version == NULL) {
- if (strlen(tor_svn_revision)) {
- size_t len = strlen(VERSION)+strlen(tor_svn_revision)+8;
- _version = tor_malloc(len);
- tor_snprintf(_version, len, "%s (r%s)", VERSION, tor_svn_revision);
- } else {
- _version = tor_strdup(VERSION);
- }
- }
- return _version;
+ return VERSION;
}
/** Release additional memory allocated in options