diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 14:32:52 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 14:32:52 +0000 |
| commit | 64c0761c094841650f4a2f526423c5e0116b5425 (patch) | |
| tree | 7ad260032b70b583f8ace6f05a8c33d7f71ae41f | |
| parent | ad2778a7ba836f39b9761eacc101a91f599cf40e (diff) | |
| download | pw-darwin-64c0761c094841650f4a2f526423c5e0116b5425.tar.gz pw-darwin-64c0761c094841650f4a2f526423c5e0116b5425.zip | |
Fix pw userdel -r not deleting homedir
| -rw-r--r-- | pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c index 5f65129..f5305f9 100644 --- a/pw/pw_user.c +++ b/pw/pw_user.c @@ -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 */ |
