mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
confd: remove home directory when removing users
No point in leaving unused home directories lingering on the system, also a potential security problem. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
committed by
Tobias Waldekranz
parent
5f27f043d1
commit
94908ed33c
@@ -582,7 +582,7 @@ static int is_valid_username(const char *user)
|
||||
static int sys_del_user(char *user)
|
||||
{
|
||||
char *args[] = {
|
||||
"deluser", user, NULL
|
||||
"deluser", "--remove-home", user, NULL
|
||||
};
|
||||
int err;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user