On Sun, Jan 22, 2017 at 08:03:19PM +0000, Baptiste Daroussin wrote: > Author: bapt > Date: Sun Jan 22 20:03:18 2017 > New Revision: 312650 > URL: https://svnweb.freebsd.org/changeset/base/312650 > > Log: > Really restore the old behaviour for pw usermod -m > > It again reinstall missing skel files without overwriting changed one > Add a regression test about it > > Reported by: ae > MFC after: 3 days > > Modified: > head/usr.sbin/pw/psdate.c > head/usr.sbin/pw/pw_user.c > head/usr.sbin/pw/tests/pw_usermod.sh > > Modified: head/usr.sbin/pw/psdate.c > ============================================================================== > --- head/usr.sbin/pw/psdate.c Sun Jan 22 19:50:23 2017 (r312649) > +++ head/usr.sbin/pw/psdate.c Sun Jan 22 20:03:18 2017 (r312650) > @@ -41,12 +41,8 @@ static const char rcsid[] = > static int > numerics(char const * str) > { > - int rc = isdigit((unsigned char)*str); > > - if (rc) > - while (isdigit((unsigned char)*str) || *str == 'x') > - ++str; > - return rc && !*str; > + return (str[strspn(str, "0123456789x")] == '\0'); > }
Oups that wasn't supposed to be there but anyway it is in now Bapt
signature.asc
Description: PGP signature