diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-13 09:08:27 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-13 09:08:27 +0000 |
commit | 0318aba2a76b3131e3b36d0171ae00f776765bd9 (patch) | |
tree | 093be2d58a022b23ed0c11b930a4af27a31ea24d /pw/pw_user.c | |
parent | 1e6401def38868bd9621db64c744d1788b51170d (diff) | |
download | pw-darwin-0318aba2a76b3131e3b36d0171ae00f776765bd9.tar.gz pw-darwin-0318aba2a76b3131e3b36d0171ae00f776765bd9.tar.zst pw-darwin-0318aba2a76b3131e3b36d0171ae00f776765bd9.zip |
Regression fix: allow to create users with uid0
Reported by: Jan Mikkelsen <janm@transactionware.com>
Diffstat (limited to 'pw/pw_user.c')
-rw-r--r-- | pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c index 8ba2807..d6dad3f 100644 --- a/pw/pw_user.c +++ b/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) |