svn commit: r285441 - head/usr.sbin/pw
Baptiste Daroussin
bapt at FreeBSD.org
Mon Jul 13 09:08:28 UTC 2015
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 at 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)
More information about the svn-src-all
mailing list