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.
Does this occur with any other version of eselect that you know of or can test?
I tried with eselect-1.0.10 and eselect-1.1.1 and the problem occurs with those versions.
Created attachment 200529 [details, diff] diff for bashcomp.eselect Does attached patch fix the issue for you?
Yes, it does. It's fix also bug #279664 . Thank you.
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.
Fixed in eselect-1.1.3. Thank you for reporting.