When using arm to configure tor, arm wipes /etc/tor/torrc
I am running Debian Squeeze on the DreamPlug, version 0.2.1.29 of tor from deb.torproject.org, and version 22.214.171.124 (released April 21, 2011) of arm from squeeze-backports.
When using arm to configure tor, arm wipes /etc/tor/torrc completely. I have tried to write to the existing configuration file, as well as create a new one. In both cases, the configuration file is empty after arm reports that it has saved the config.
This is what I do: Go to page three, select Nickname, hit enter, type 'foobar', hit enter, press 'w', choose "Save", and confirm that I want to save to /etc/tor/torrc. I then see a message from arm telling me that the config has been saved. The result is that /etc/tor/torrc is completely empty.
The same thing happens if I choose "Save As..." and write /etc/tor/torrc.test instead. The file is created, but it is empty.
I have tried to edit src/interface/controller.py with the following on line 1773:
log.log(log.ERR, "attempting to save the following... %s" % "\n".join(configLines))
... but I still get an empty config file. Same result when moving the line above to line 1759 in controller.py