After filtering, the program can't find the user name. So it calls the function again.
This probably happened when they moved an old unix app to Windows.
As other have said, maybe Raymond Chen will some day do a blog post on this, although, considering that the bug is in DFPCommon.dll, i.e. the "Disk Footprint Utility Library", I doubt it really belongs to the shell and thus he won't know more than we do.
for (pos = 0; !found; pos++) {
row = get_next_row();
if (strstr(row, "user") {
// this is obviously a header row
continue
}
if (strstr(row, user_name)) {
found = 1;
}
} for (pos = 0; !found; pos++)
This is so cool, I have never thought about this in like a decade of programming. I mean using a bool variable within a for loop. while(!done)
{
try
{
foo();
baz();
done = true;
}
catch(...) {}
}
with baz failing, but the retry present to handle cases where foo fails.Let's also assume that whatever this is has multiple instances for some reason; maybe it's something called as part of an update process for system accounting information.
If every process on the machine did this every time it got re-scheduled? Yeah, I can see that.