logoalt Hacker News

AnimalMuppettoday at 2:39 AM0 repliesview on HN

Somewhat off topic, but related: I worked at this place that made internet security software. It ran on Windows, and on various flavors of Unix.

One customer complained about our software corrupting files on their hard disk. Turns out they had modified their systems so that a newly-spawned program was not given a stderr. That is, it was not handed 0, 1, and 2 (file descriptors), but only 0 and 1. So whenever our program wrote something to stderr, it wrote to whatever file had been the first one opened by the program.

We talked about fixing this, briefly. Instead we decided to tell the customer to fix their broken environment.