]> git.cameronkatri.com Git - pw-darwin.git/commit
pw: do not removed home directories if not owned
authorBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 23 Mar 2020 08:23:22 +0000 (08:23 +0000)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 23 Mar 2020 08:23:22 +0000 (08:23 +0000)
commit3920ec2f846f7ebb004929a0bccbef481f867f11
tree42c8604815a605669cfc1f78cd73733fd8b84313
parentb5b471acbfe024ca832aa18f73f49b3fbc3f14b9
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>
MFC after: 3 days
pw/rm_r.c