Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 469660 Details for
Bug 615212
sys-apps/portage: properly support FreeBSD filesystem or filesystem mounted with grpid|bsdgroups with FEATURE="userpriv"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
freebsd-uid-gid-install.patch
freebsd-uid-gid-install.patch (text/plain), 927 bytes, created by
i.Dark_Templar
on 2017-04-10 21:16:02 UTC
(
hide
)
Description:
freebsd-uid-gid-install.patch
Filename:
MIME Type:
Creator:
i.Dark_Templar
Created:
2017-04-10 21:16:02 UTC
Size:
927 bytes
patch
obsolete
>--- portage-2.3.5/bin/phase-functions.sh.back 2017-04-09 19:48:50.340186000 +0000 >+++ portage-2.3.5/bin/phase-functions.sh 2017-04-09 19:54:17.910435000 +0000 >@@ -562,6 +562,19 @@ > fi > rm -rf "${D}" > mkdir -p "${_x}" >+ # BSD by default inherits directory group id from parent directory >+ # It's also possible to have such behaviour on Linux by >+ # mounting with option grpid or bsdgroups on some Linux filesystems >+ # This may result in wrong group owning files with some features enabled, >+ # for example with userpriv feature it may lead to portage group owning files >+ # To fix this, explicitely set uid and gid of image root >+ _user="$(getent passwd "${PORTAGE_INST_UID}" | sed -e 's/:.*//')" >+ _group="$(getent group "${PORTAGE_INST_GID}" | sed -e 's/:.*//')" >+ if [ -n "${_user}" -o -n "${_group}" ] ; then >+ chown "${_user}":"${_group}" "${_x}" >+ fi >+ unset _user >+ unset _group > unset _x > > if [[ -d $S ]] ; then
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 615212
: 469660