Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #9680

Closed (moved)
(moved)
Open
Created Sep 05, 2013 by Nick Mathewson@nickm🍬

get_datadir_fname2_suffix() should create missing directories as needd

In #9645 (moved), mr-4 notes that Tor behaves inconsistently if the datadir gets obliterated. IMO, removing the datadir of a running Tor is not a supported operation... but that's no reason not to be a little robust when we can.

One opportunity we have here is to just make get_datadir_fname2_suffix() always check whether the directory it's about to give a fname in exists, and if so, create it. (We should audit its uses though to make sure that's sensible. Perhaps it needs to take a create-dir-if-needed flag.)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking