Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 2015 11:30:33 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284112 - head/usr.sbin/pw
Message-ID:  <201506071130.t57BUXus087371@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Jun  7 11:30:33 2015
New Revision: 284112
URL: https://svnweb.freebsd.org/changeset/base/284112

Log:
  Remove one level of indentation

Modified:
  head/usr.sbin/pw/pw_user.c

Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c	Sun Jun  7 11:26:28 2015	(r284111)
+++ head/usr.sbin/pw/pw_user.c	Sun Jun  7 11:30:33 2015	(r284112)
@@ -1152,13 +1152,12 @@ delete_user(struct userconf *cnf, struct
 		/*
 		 * 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 ");
 		}
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506071130.t57BUXus087371>