Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 279662

Summary: =app-admin/eselect-1.1.2 should force 022 umask in bashcomp module
Product: Gentoo Hosted Projects Reporter: Marcin Mirosław <bug>
Component: eselectAssignee: Gentoo eselect Team <eselect>
Status: RESOLVED FIXED    
Severity: minor CC: james, shell-tools
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: diff for bashcomp.eselect

Description Marcin Mirosław 2009-07-30 12:19:20 UTC
I have umask 077 set in /etc/profile , and i dont' have enable any bashcomp globally yet. Now, when i trying to add new target for bashcomp (with --global option), eselect create directory /etc/bash_completion with 700 mode. Result is that user other than root, can't source this directory.
Directory /etc/bash_completion should have always 755 mode.


Reproducible: Always

Steps to Reproduce:
1.rm -rf /etc/bash_completion
2.set umask 077 in /etc/profile
3.source /etc/profile
4.eselect bashcomp enable --global vim
5.non-root user can't use bash completion, because can't load completion.
Comment 1 James Earl Spahlinger 2009-07-30 22:42:19 UTC
Does this occur with any other version of eselect that you know of or can test?
Comment 2 Marcin Mirosław 2009-07-31 07:24:19 UTC
I tried with eselect-1.0.10 and eselect-1.1.1 and the problem occurs with those versions.
Comment 3 Ulrich Müller gentoo-dev 2009-08-07 18:18:16 UTC
Created attachment 200529 [details, diff]
diff for bashcomp.eselect

Does attached patch fix the issue for you?
Comment 4 Marcin Mirosław 2009-08-08 12:16:02 UTC
Yes, it does. It's fix also bug #279664 .
Thank you.
Comment 5 Ulrich Müller gentoo-dev 2009-08-08 12:48:48 UTC
Fixed in SVN trunk (r601).

This will either be in eselect-1.2 or (in case 1.2 is delayed for some reason) in 1.1.3.
Comment 6 Ulrich Müller gentoo-dev 2009-08-16 11:15:01 UTC
Fixed in eselect-1.1.3.
Thank you for reporting.