[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Title: GitLab

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:

Changes:

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

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits