tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 2c97cf3add00bdaadecd4e581dff2d7b30437c33
parent 3430b487d68a8af131e23fa417f7635e1cbaf3c8
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed, 16 Oct 2019 12:31:47 -0400

Merge remote-tracking branch 'tor-github/pr/1329'

Diffstat:
Achanges/ticket31336 | 3+++
Mscripts/maint/add_c_file.py | 4+---
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/changes/ticket31336 b/changes/ticket31336 @@ -0,0 +1,3 @@ + o Minor bugfixes (developer tools): + - Allow paths starting with ./ in scripts/add_c_file.py. Fixes bug + 31336; bugfix on 0.4.1.2-alpha. diff --git a/scripts/maint/add_c_file.py b/scripts/maint/add_c_file.py @@ -15,9 +15,7 @@ import time def topdir_file(name): """Strip opening "src" from a filename""" - if name.startswith("src/"): - name = name[4:] - return name + return os.path.relpath(name, './src') def guard_macro(name): """Return the guard macro that should be used for the header file 'name'.