]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r359232:
authorBaptiste Daroussin <bapt@FreeBSD.org>
Fri, 3 Apr 2020 05:08:06 +0000 (05:08 +0000)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Fri, 3 Apr 2020 05:08:06 +0000 (05:08 +0000)
commit9ba5d98a044417a35f53284ecd355ea6e0f7b7b0
tree4c0a936b76f15f7ab8606a43394fd920b3ad8a4d
parent9a42512e8a0262c9e226e06cd6924fa2f0394bbf
MFC r359232:

pw: do not removed home directories if not owned

When deleting a user, if its home directory does not belong to it, it should
not be removed. This is the promise that the manpage makes, the tool should
ensure that it respects that promise.

Add a regression test about it

PR:  244967
Submitted by: Eric Hanneken <eric@erichanneken.com>
usr.sbin/pw/rm_r.c
usr.sbin/pw/tests/pw_userdel_test.sh