Date: Mon, 13 Jul 2015 09:08:28 +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: r285441 - head/usr.sbin/pw Message-ID: <201507130908.t6D98SfB090970@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Mon Jul 13 09:08:27 2015 New Revision: 285441 URL: https://svnweb.freebsd.org/changeset/base/285441 Log: Regression fix: allow to create users with uid0 Reported by: Jan Mikkelsen <janm@transactionware.com> Modified: head/usr.sbin/pw/pw_user.c Modified: head/usr.sbin/pw/pw_user.c ============================================================================== --- head/usr.sbin/pw/pw_user.c Mon Jul 13 09:07:38 2015 (r285440) +++ head/usr.sbin/pw/pw_user.c Mon Jul 13 09:08:27 2015 (r285441) @@ -804,7 +804,7 @@ pw_uidpolicy(struct userconf * cnf, long /* * Check the given uid, if any */ - if (id > 0) { + if (id >= 0) { uid = (uid_t) id; if ((pwd = GETPWUID(uid)) != NULL && conf.checkduplicate)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507130908.t6D98SfB090970>