]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Fix pw userdel -r not deleting homedir
authorBaptiste Daroussin <bapt@FreeBSD.org>
Sun, 7 Jun 2015 14:32:52 +0000 (14:32 +0000)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Sun, 7 Jun 2015 14:32:52 +0000 (14:32 +0000)
pw/pw_user.c

index 5f651294707b2d32a71ca6549661316059580b7f..f5305f90968576e76ba487d95e8d804bbf56e7d7 100644 (file)
@@ -1139,7 +1139,7 @@ delete_user(struct userconf *cnf, struct passwd *pwd, struct carg *a_name,
 
        pw_log(cnf, mode, W_USER, "%s(%u) account removed", a_name->val, uid);
 
-       if (PWALTDIR()) {
+       if (!PWALTDIR()) {
                /*
                 * Remove mail file
                 */