svn commit: r312650 - in head/usr.sbin/pw: . tests
Baptiste Daroussin
bapt at FreeBSD.org
Sun Jan 22 20:08:10 UTC 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20170122/d0ebe7dc/attachment.sig>
More information about the svn-src-all
mailing list