Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 353992 Details for
Bug 477804
user.eclass: enewuser fails on parallel jobs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
possible fix
parallel_linux_useradd.txt (text/plain), 1.52 KB, created by
Rick Farina (Zero_Chaos)
on 2013-07-23 04:43:43 UTC
(
hide
)
Description:
possible fix
Filename:
MIME Type:
Creator:
Rick Farina (Zero_Chaos)
Created:
2013-07-23 04:43:43 UTC
Size:
1.52 KB
patch
obsolete
>Most of this diff is indent changes, the only real addition is the >if [ ${CHOST} != *-linux* ]; then >fi > >Index: user.eclass >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/eclass/user.eclass,v >retrieving revision 1.22 >diff -u -r1.22 user.eclass >--- user.eclass 22 Jun 2012 19:18:24 -0000 1.22 >+++ user.eclass 23 Jul 2013 04:18:59 -0000 >@@ -126,26 +126,29 @@ > local opts=() > > # handle uid >- local euid=$1; shift >- if [[ -n ${euid} && ${euid} != -1 ]] ; then >- if [[ ${euid} -gt 0 ]] ; then >- if [[ -n $(egetent passwd ${euid}) ]] ; then >- euid="next" >+ # not nessesary on linux >+ if [ ${CHOST} != *-linux* ]; then >+ local euid=$1; shift >+ if [[ -n ${euid} && ${euid} != -1 ]] ; then >+ if [[ ${euid} -gt 0 ]] ; then >+ if [[ -n $(egetent passwd ${euid}) ]] ; then >+ euid="next" >+ fi >+ else >+ eerror "Userid given but is not greater than 0 !" >+ die "${euid} is not a valid UID" > fi > else >- eerror "Userid given but is not greater than 0 !" >- die "${euid} is not a valid UID" >+ euid="next" > fi >- else >- euid="next" >- fi >- if [[ ${euid} == "next" ]] ; then >- for ((euid = 101; euid <= 999; euid++)); do >- [[ -z $(egetent passwd ${euid}) ]] && break >- done >+ if [[ ${euid} == "next" ]] ; then >+ for ((euid = 101; euid <= 999; euid++)); do >+ [[ -z $(egetent passwd ${euid}) ]] && break >+ done >+ fi >+ opts+=( -u ${euid} ) >+ einfo " - Userid: ${euid}" > fi >- opts+=( -u ${euid} ) >- einfo " - Userid: ${euid}" > > # handle shell > local eshell=$1; shift
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 477804
:
353992
|
356106
|
357554
|
365648