Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 181195 Details for
Bug 257945
eutils.eclass egetent doesn't support OS X 10.5 [PATCH INCLUDED]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for eutils.eclass
eutils-darwin9-getent-dscl.patch (text/plain), 948 bytes, created by
Armando Di Cianno
on 2009-02-06 21:35:06 UTC
(
hide
)
Description:
Patch for eutils.eclass
Filename:
MIME Type:
Creator:
Armando Di Cianno
Created:
2009-02-06 21:35:06 UTC
Size:
948 bytes
patch
obsolete
>--- /Library/Gentoo/usr/portage/eclass/eutils.eclass 2009-01-29 14:03:41 -0500 >+++ eutils.eclass 2009-02-06 16:23:22 -0500 >@@ -389,10 +389,27 @@ > # usata@gentoo.org (OS X) > # Aaron Walker <ka0ttic@gentoo.org> (FreeBSD) > # @DESCRIPTION: >-# Small wrapper for getent (Linux), nidump (Mac OS X), >+# Small wrapper for getent (Linux), >+# nidump (< Mac OS X 10.5), dscl (Mac OS X 10.5), > # and pw (FreeBSD) used in enewuser()/enewgroup() > egetent() { >+ewarn "CHOST: ${CHOST}" > case ${CHOST} in >+ *-darwin9) >+ local mytype=$1 >+ [[ "passwd" == $mytype ]] && mytype="Users" >+ [[ "group" == $mytype ]] && mytype="Groups" >+ case "$2" in >+ *[!0-9]*) # Non numeric >+ dscl . -read /$mytype/$2 2>/dev/null |grep RecordName >+ ;; >+ *) # Numeric >+ local mykey="UniqueID" >+ [[ $mytype == "Groups" ]] && mykey="PrimaryGroupID" >+ dscl . -search /$mytype $mykey $2 2>/dev/null >+ ;; >+ esac >+ ;; > *-darwin*) > case "$2" in > *[!0-9]*) # Non numeric
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 257945
: 181195