Branch: refs/heads/ay-remove-group_password
Home: https://github.com/yast/yast-users
Commit: 9ffe37b47a3084479c14f46646c7df077eabc98e
https://github.com/yast/yast-users/commit/9ffe37b47a3084479c14f46646c7df077e...
Author: David Díaz González
Date: 2021-11-10 (Wed, 10 Nov 2021)
Changed paths:
M src/modules/Users.pm
Log Message:
-----------
Flush deleted users after each write
The Users module was not cleaning its internal data structure after
deleting users, leaving them there marked as "deleted".
With previous code writing the /etc/passwd file directly, this was not a
problem. It simply didn't write the "deleted" users. Now that new code
is running a "userdel" command to remove them, an error for previously
deleted users is prompted after running a "Write Changes Now" action.
Removing a deleted user internally at the end of each PostDeleteUser fix
the problem.