MilesCranmer / rip2

A safe and ergonomic alternative to rm
GNU General Public License v3.0
27 stars 1 forks source link

Use `std::env::temp_dir()` for graveyard path #22

Closed MilesCranmer closed 2 months ago

MilesCranmer commented 2 months ago

It is a potential security vulnerability to use /tmp as it may be accessible to multiple users. It is safer and more robust to simply write to whatever the operating system lists as the user's temporary directory. However, this is a breaking change.