HomeFreeBSD

git-arc: Trap on every mktemp

Description

git-arc: Trap on every mktemp

Trap:

  • EXIT (0)
  • HUP (1)
  • INT (2)
  • QUIT (3)
  • TRAP (5)
  • USR1 (10)
  • TERM (15)

every time mktemp is called to reduce the chances of leaving stray files
or directories with possible sensitive data inside.

We avoid using a template with mktemp, as some operating systems may use
unpredictable base paths by default (macOS).

Suggested by: des
Reviewed by: emaste, 0mp, des (earlier), markj
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D47289

Details

Provenance
jlduranAuthored on Tue, Nov 5, 1:47 AM
Reviewer
emaste
Differential Revision
D47289: git-arc: Trap on every mktemp
Parents
rG019981e00f23: git-arc: Fix typo s/Truning/Turning/
Branches
Unknown
Tags
Unknown