Page 1 of 1

'rm -rf "$STEAMROOT/"*'.

Posted: Sat Jan 17, 2015 11:39 pm
by luis
The mind of an anonymous Valve's programmer wrote: Hmmm... a rm -rf with an environment variable and a literal "/*" combined together as its parameter ...

Maybe I should check if the $STEAMROOT is not empty ...

Maybe I should check if the path exists ...

Maybe I could also rewrite it an leave out the "/*", after all I've specified -rf already with a path ...

Maybe ... hey ! Look at the time, it's noon ! Lunch time ! I'll think about all this later.
http://www.bit-tech.net/news/gaming/201 ... inux-bug/1

Re: 'rm -rf "$STEAMROOT/"*'.

Posted: Sun Jan 18, 2015 1:08 am
by Shield
Geez... :? I bet someone got fired...

Re: 'rm -rf "$STEAMROOT/"*'.

Posted: Sun Jan 18, 2015 4:54 am
by idle
Shield wrote:Geez... :? I bet someone got fired...
Well in their defense, they at least commented it with "SCARY!" :lol:
https://news.ycombinator.com/item?id=8896319

Re: 'rm -rf "$STEAMROOT/"*'.

Posted: Sun Jan 25, 2015 12:36 am
by luis
http://store.steampowered.com/news/15512
Linux
Fixed a rare bug where Steam could delete user files when failing to start
A rare, unpredictable, inscrutable bug you mean.

Just another day at the office.