]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
add_c_file: tolerate ./ in filenames.
authorNick Mathewson <nickm@torproject.org>
Wed, 15 Jan 2020 17:58:52 +0000 (12:58 -0500)
committerteor <teor@torproject.org>
Wed, 15 Jan 2020 23:23:54 +0000 (09:23 +1000)
scripts/maint/add_c_file.py

index 6656d0d4226a38efe816b4e8c8b52e09433fecc9..66a4fdcd9e208d261c2708cb8bab03d799ff3be3 100755 (executable)
@@ -216,6 +216,9 @@ def run(fn):
     add them to include.am.
     """
 
+    if fn.startswith("./"):
+        fn = fn[2:]
+
     cf = makeext(fn, "c")
     hf = makeext(fn, "h")