Re: [PATCH] deluser: check if specified home is a directory before removing it

2020-06-09 Thread Tito
On 6/9/20 12:44 PM, soe...@soeren-tempel.net wrote: > From: Sören Tempel > > On Alpine, some users use /dev/null as a home directory. When removing > such a user with `deluser --remove-home` this causes the /dev/null > device file to be removed which is undesirable. To prevent this pitfall, > c

[PATCH] deluser: check if specified home is a directory before removing it

2020-06-09 Thread soeren
From: Sören Tempel On Alpine, some users use /dev/null as a home directory. When removing such a user with `deluser --remove-home` this causes the /dev/null device file to be removed which is undesirable. To prevent this pitfall, check if the home directory specified for the user is an actual dir