summaryrefslogtreecommitdiffstats
path: root/pw/pw_user.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-06-07 11:30:33 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-06-07 11:30:33 +0000
commit913db9fa365fd7f1c73ab492d2decfb718d3dbba (patch)
tree9eb2814588b44c8e08ad55fa03c3db6015d2ee7d /pw/pw_user.c
parente953873e6616177dddc24c5b707934a923984bfa (diff)
downloadpw-darwin-913db9fa365fd7f1c73ab492d2decfb718d3dbba.tar.gz
pw-darwin-913db9fa365fd7f1c73ab492d2decfb718d3dbba.tar.zst
pw-darwin-913db9fa365fd7f1c73ab492d2decfb718d3dbba.zip
Remove one level of indentation
Diffstat (limited to 'pw/pw_user.c')
-rw-r--r--pw/pw_user.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index ad02450..8a07a0e 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -1152,13 +1152,12 @@ delete_user(struct userconf *cnf, struct passwd *pwd, struct carg *a_name,
/*
* Remove home directory and contents
*/
- if (delete && *home == '/' && getpwuid(uid) == NULL) {
- if (stat(home, &st) != -1) {
- rm_r(home, uid);
- pw_log(cnf, mode, W_USER, "%s(%u) home '%s' %sremoved",
- a_name->val, uid, home,
- stat(home, &st) == -1 ? "" : "not completely ");
- }
+ if (delete && *home == '/' && getpwuid(uid) == NULL &&
+ stat(home, &st) != -1) {
+ rm_r(home, uid);
+ pw_log(cnf, mode, W_USER, "%s(%u) home '%s' %sremoved",
+ a_name->val, uid, home,
+ stat(home, &st) == -1 ? "" : "not completely ");
}
}