3 ms·
"Why is it when I run your tool, I have to reinstall my Linux distribution from CD?" This was indeed a puzzling question. Some poking around exposed the follow
by yread 17y ago
"Why is it when I run your tool, I have to reinstall my Linux distribution from CD?"
This was indeed a puzzling question. Some poking around exposed the following chain of events: the company's make used a novel format to print out the absolute path of the directory in which the compiler ran; our script misparsed this path, producing the empty string that we gave as the destination to the Unix "cd" (change directory) command, causing it to change to the top level of the system; it ran "rm -rf * " (recursive delete) during compilation to clean up temporary files; and the build process ran as root.