When creating users, shadow-utils might create backup files for
subordinate ID files (subid, subgid). Make sure we clean them up
similarly to the other backup files shadow-utils creates.
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
'gshadow',
'passwd',
'shadow',
+ 'subgid',
+ 'subuid',
):
filepath = os.path.join(sysconfdir, filename)
remove_shadowutils_backup_file(filepath)