[tor-commits] [Git][tpo/applications/tor-browser-build][maint-13.0] Bug 41097: authenticode-timestamping.sh: create $tmp_dir with mktemp -d

richard (@richard) git at gitlab.torproject.org
Thu Feb 29 12:41:42 UTC 2024



richard pushed to branch maint-13.0 at The Tor Project / Applications / tor-browser-build


Commits:
02f786b2 by Nicolas Vigier at 2024-02-29T12:41:41+00:00
Bug 41097: authenticode-timestamping.sh: create $tmp_dir with mktemp -d


(cherry picked from commit 800e2fff2d33150beffc086a46921807532bddcc)
- - - - -


1 changed file:

- tools/signing/authenticode-timestamping.sh


Changes:

=====================================
tools/signing/authenticode-timestamping.sh
=====================================
@@ -46,8 +46,8 @@ test -f "$osslsigncode_file" ||
 which rename > /dev/null 2>&1 ||
   exit_error '`rename` is missing.'
 
-tmp_dir="$signed_dir/$tbb_version/tmp-timestamp"
-mkdir "$tmp_dir"
+tmp_dir=$(mktemp -d)
+trap "rm -Rf $tmp_dir" EXIT
 tar -C "$tmp_dir" -xf "$osslsigncode_file"
 export PATH="$PATH:$tmp_dir/osslsigncode/bin"
 
@@ -64,5 +64,3 @@ do
 done
 echo "Timestamped $COUNT .exe files, now renaming"
 rename -f 's/-timestamped//' *-timestamped
-
-rm -Rf "$tmp_dir"



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/02f786b28ff949d5af636c873e1f8cd738bbb1aa

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/02f786b28ff949d5af636c873e1f8cd738bbb1aa
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240229/08481a6b/attachment-0001.htm>


More information about the tor-commits mailing list