Date: Sat, 12 Sep 2015 08:24:26 +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: r287701 - head/usr.sbin/pw Message-ID: <201509120824.t8C8OQba032593@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Sat Sep 12 08:24:25 2015 New Revision: 287701 URL: https://svnweb.freebsd.org/changeset/base/287701 Log: Regression: fix pw usermod -d Mark the user has having been edited if -d option is passed to usermod and so the request change of home directory actually happen PR: 203052 Reported by: lenzi.sergio@gmail.com MFC after: 2 days Modified: head/usr.sbin/pw/pw_user.c Modified: head/usr.sbin/pw/pw_user.c ============================================================================== --- head/usr.sbin/pw/pw_user.c Sat Sep 12 02:36:17 2015 (r287700) +++ head/usr.sbin/pw/pw_user.c Sat Sep 12 08:24:25 2015 (r287701) @@ -1694,6 +1694,7 @@ pw_user_mod(int argc, char **argv, char if (homedir && strcmp(pwd->pw_dir, homedir) != 0) { pwd->pw_dir = homedir; + edited = true; if (fstatat(conf.rootfd, pwd->pw_dir, &st, 0) == -1) { if (!createhome) warnx("WARNING: home `%s' does not exist",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509120824.t8C8OQba032593>