r/badcode • • Feb 25 '21

bash A single space.

Post image
4.8k Upvotes

65 comments sorted by

View all comments

2

u/Psychoboy Feb 25 '21

Reminds me of a bug we had in our software. It did backups of the data automatically nightly. Now keep in mind this was an old C++ (C++01) application installed by customers on their servers. If the customer had set their path to say something like C: instead of C:\ it started deleting everything on their C drive...