rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.07k stars 408 forks source link

rtorrent.input_history with sensitive content #1089

Open Peter774 opened 3 years ago

Peter774 commented 3 years ago

Is there a way to disable rtorrent.input_history file which contains info about downloaded torrents?

kannibalox commented 3 years ago

Haven't tried it myself, but symlinking it to /dev/null should work. ln -s /dev/null <session directory>/rtorrent.input_history.

Peter774 commented 2 years ago

No luck. Symlink is deleted and recreated as an regular file.

pyroscope commented 2 years ago

your session contains that info, too, and more. and you can rm the history file via cron every hour or so.

George-TL commented 2 years ago

your session contains that info, too, and more.

Yes, this issue is about "rtorrent.input_history" file which sits in "session.path.set" directory.

and you can rm the history file via cron every hour or so.

This issue is more about solutions than workarounds.

kannibalox commented 2 years ago

After looking at the code, one workaround I found is to create rtorrent.input_history.new as a directory. It detects that it exists but also can't properly write to it and exits silently.

Peter774 commented 2 years ago

After looking at the code, one workaround I found is to create rtorrent.input_history.new as a directory. It detects that it exists but also can't properly write to it and exits silently.

Yup, I can confirm that creating "rtorrent.input_history.new" directory and removing "rtorrent.input_history" file just works.