svn commit: r287701 - head/usr.sbin/pw
Baptiste Daroussin
bapt at FreeBSD.org
Sat Sep 12 08:24:26 UTC 2015
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 at 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",
More information about the svn-src-head
mailing list