Remove one level of indentation

This commit is contained in:
Baptiste Daroussin 2015-06-07 11:30:33 +00:00
parent 581a66ea58
commit 75a030d4f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284112

View File

@ -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 ");
}
}