[tor-bugs] #16582 [Tor]: Distinguish ENOENT from other error cases when loading keys.

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jul 14 14:06:36 UTC 2015


#16582: Distinguish ENOENT from other error cases when loading keys.
--------------------+------------------------------------
 Reporter:  nickm   |          Owner:
     Type:  defect  |         Status:  new
 Priority:  major   |      Milestone:  Tor: 0.2.7.x-final
Component:  Tor     |        Version:
 Keywords:          |  Actual Points:
Parent ID:  #16530  |         Points:
--------------------+------------------------------------
 You know what's horrible? Trying to load a key, failing with EMFILE or
 something, and then concluding that the key doesn't exist, and then
 overwriting it.

 We'd better only ever say "No key, better make one" when we get ENOENT.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16582>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list