if (!userfile.getName().matches("[\\w-]+")) {
System.err.println("Illegal username: " + userfile.getName());
return;
}
LocalUser user = userbase.addUser(userfile.getName(), "WILL_BE_CHANGED", false);
user.passwd(passwords.get(user.getUsername()), false);
BufferedReader in = null;
try {
in = new BufferedReader(new InputStreamReader(new FileInputStream(userfile)));
String line;
boolean hasPrimaryGroupSet = false;