"--no-preserve-root" made me laugh. for testing unescaped calls to rm?
It's a bypass against a mitigation for an old trick which worked back in the day where you could watch someone self-nuke themselves off of IRC by convincing them to type rm -rf /
It is to mess with people calling rm * / in the directory
Good thing there is not really any reason to call rm like that
oh does that actually work? the * expanding a filename to an argument? I guess it all just ends up in argv
Oh cool! I use nasty-files as a submodule with some of my tests. I can't believe how long I went without without testing against the filename corner cases.
I've found so much software that doesn't properly handle nasty filenames, I think it should be tested for more.