Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We dont want to fully skip the user update if it exists as it may be for a specific reason like updating groups and such, but if the entry does not have a specific user id set by the user object and the user already exists in the passwd file, we should reuse the userid as to not break existing files that may have permissions linked to that user This should fix: - users in config files appearing more than once, so their uid wont change - ssh keys added to users than are updated after the key creation - anything else adding a user to the passwd file and bumping the next uid free, as our calculation picks the latest free uid Signed-off-by: Itxaka <[email protected]>
- Loading branch information