Ah !  So the "local" in question is "the username is local to one host but may be used on another" where I was reading "the array whose name is 'username' is a local variable of this function".  Comment could be clearer !

The fact that this is copied from elsewhere is no reason to ignore issues with the code; if it's wrong or just confusing, the source of the copy might also need fixed or clarified !