[tor-commits] [tor/master] Fix permissions logic