]> git.ipfire.org Git - thirdparty/tor.git/commit
Harden check_private_dir() to remove any potential race.
authorJeremy <jeremy@sturgix.com>
Tue, 8 Dec 2015 18:25:15 +0000 (13:25 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 16 Feb 2016 16:21:46 +0000 (11:21 -0500)
commitf48c607fd970aedaf0180a0a23b04eb5101abca0
treed238aef4b462d643558dbb98342a024020d3cb82
parent4e19133dccfc4d252e9ed2695f6fe49bb4503ac8
Harden check_private_dir() to remove any potential race.

Remove any potential race between stat() and chmod().
Replace stat() with fstat().
Replace chmod() with fchmod()
src/common/util.c