aboutsummaryrefslogtreecommitdiff
path: root/scripts/coccinelle
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-10-28 13:28:50 +1000
committerteor <teor@torproject.org>2019-10-28 13:28:50 +1000
commit3479024cb1034dd453fed577b493cbe5515765d3 (patch)
treeb9735780e7043fc19e9f5b6ea066f0cb03688c04 /scripts/coccinelle
parent18e09913bf23253645404612726983c5c43e19cc (diff)
downloadtor-3479024cb1034dd453fed577b493cbe5515765d3.tar.gz
tor-3479024cb1034dd453fed577b493cbe5515765d3.zip
scripts: Change to the top source directory as needed
Bugfix on 31919; not in any released version of tor.
Diffstat (limited to 'scripts/coccinelle')
-rwxr-xr-xscripts/coccinelle/check_cocci_parse.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/coccinelle/check_cocci_parse.sh b/scripts/coccinelle/check_cocci_parse.sh
index 5c27c7bc88..220b405940 100755
--- a/scripts/coccinelle/check_cocci_parse.sh
+++ b/scripts/coccinelle/check_cocci_parse.sh
@@ -30,6 +30,7 @@ if test $# -ge 1 ; then
"$try_parse" "$@"
exitcode=$?
else
+ cd "$top" || exit 1
# This is the layout in 0.3.5
"$try_parse" \
src/lib/*/*.[ch] \