diff options
author | bapt <bapt@FreeBSD.org> | 2015-07-13 09:08:27 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-07-13 09:08:27 +0000 |
commit | bfc5fcd1dc859a83ea3fad156de142d98d774a25 (patch) | |
tree | ed67c3b80609caf6dcf86ff300b80265040da35d /usr.sbin/pw | |
parent | 7f2e5a63d2132ef339a5d0bc30c062c1aa1ad798 (diff) | |
download | FreeBSD-src-bfc5fcd1dc859a83ea3fad156de142d98d774a25.zip FreeBSD-src-bfc5fcd1dc859a83ea3fad156de142d98d774a25.tar.gz |
Regression fix: allow to create users with uid0
Reported by: Jan Mikkelsen <janm@transactionware.com>
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r-- | usr.sbin/pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 8ba2807..d6dad3f 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/pw/pw_user.c @@ -804,7 +804,7 @@ pw_uidpolicy(struct userconf * cnf, long id) /* * Check the given uid, if any */ - if (id > 0) { + if (id >= 0) { uid = (uid_t) id; if ((pwd = GETPWUID(uid)) != NULL && conf.checkduplicate) |