From 0318aba2a76b3131e3b36d0171ae00f776765bd9 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 13 Jul 2015 09:08:27 +0000 Subject: Regression fix: allow to create users with uid0 Reported by: Jan Mikkelsen --- pw/pw_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pw/pw_user.c') 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) -- cgit v1.2.3-56-ge451