nyxnor/onionjuggler

[QUESTION] should safe_edit maintain the file on the same directory?

Closed this issue · 0 comments

My doubt is / How can I:

Seeing the tor_conf copied to /tmp made me wonder
#54 (comment)

Vitor does not work like this because it requires a writable directory by the normal user.
But safe_edit() is called as root, edits made with sed and tee. So it is only needed a writable directory by root.

Ok, the permissions are persisted on the tmp file, so maybe it is not critical, just not ideal to change directories if not needed.