Commit 7c001b0d authored by Russ Fish's avatar Russ Fish

Fix 'unused unix uid' logic, same as the gid logic.

parent c65576e8
......@@ -377,7 +377,7 @@ sub Create($$$$)
DBQueryWarn("select u.unix_uid + 1 as start from users as u ".
"left outer join users as r on ".
" u.unix_uid + 1 = r.unix_uid ".
"where u.unix_uid>$min_uid and ".
"where u.unix_uid>=$min_uid and ".
" u.unix_uid<60000 and ".
" r.unix_uid is null limit 1");
return undef
......
......@@ -328,7 +328,7 @@ class User
DBQueryFatal("select u.unix_uid + 1 as start from users as u ".
"left outer join users as r on ".
" u.unix_uid + 1 = r.unix_uid ".
"where u.unix_uid>$MIN_UNIX_UID and ".
"where u.unix_uid>=$MIN_UNIX_UID and ".
" u.unix_uid<60000 and ".
" r.unix_uid is null limit 1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment