Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 178300 Details for
Bug 254698
app-admin/diradm-2.9.3, 2.9.6: usernextfreeuid seems incorrect
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for diradm.common.sh#usernextfreeuid
diradm.common.sh-2.9.6.patch (text/plain), 754 bytes, created by
Mikaël Cluseau
on 2009-01-12 23:20:46 UTC
(
hide
)
Description:
patch for diradm.common.sh#usernextfreeuid
Filename:
MIME Type:
Creator:
Mikaël Cluseau
Created:
2009-01-12 23:20:46 UTC
Size:
754 bytes
patch
obsolete
>--- diradm.common.sh.orig 2009-01-09 21:34:27.000000000 +1100 >+++ diradm.common.sh 2009-01-09 21:44:55.000000000 +1100 >@@ -265,10 +265,10 @@ > usernextfreeuid() { > uidlist="$(ldap_search_getattr "${USER_BASEDN}" "(uidNumber=*)" "uidNumber" | ${SORT} -rg)" > # if nothing was returned, the next number up is ours >- [ -z "${uidlist}" ] && uidlist="$((${UIDNUMBERMIN}))" >+ # --> we'll return empty. > # we do NOT do UID recycling at all, our code used to, but it turns out to be really slow > for i in ${uidlist} ; do >- if [ ${i} -lt ${UIDNUMBERMAX} -a ${i} -gt ${UIDNUMBERMIN} ]; then >+ if [ ${i} -lt ${UIDNUMBERMAX} -a ${i} -ge ${UIDNUMBERMIN} ]; then > i=$((${i}+1)) > if [ ${i} -lt ${UIDNUMBERMAX} -a ${i} -gt ${UIDNUMBERMIN} ]; then > echo $i
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 254698
:
178266
| 178300 |
178301