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

Bug 526702

Summary: sys-apps/util-linux-2.25.2: missing bashcomp alias for 'su'
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: normal CC: fturco, realnc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 521146    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-25 07:57:24 UTC
* Problems with installed bash completions were found:
 * 
 * 	su: missing alias (symlink) for completed command.
 * 
 * For more details on installing bash-completions, please see:
 * https://wiki.gentoo.org/wiki/Bash/Installing_completion_files

The Gentoo patch makes runuser completion work without su being enabled. However, the runuser completion file still enables completion for su which results in completion being randomly enabled or disabled.

Possible courses of action:

1. enable su, not sure how that interacts with BSD and stuff,

2. patch out 'complete -F _su_module su' from the completion file,

3. create the alias for 'su' (or just install both su+runuser as with --enable-su) and assume that util-linux installs completion for shadow.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-04-03 23:00:32 UTC
Please suppress the false positive.

util-linux ebuild contains this note:
    # Note:
    # Bash completion for "runuser" command is provided by same file which
    # would also provide bash completion for "su" command. However, we don't
    # use "su" command from this package.
    # This triggers a known QA warning which we ignore for now to magically
    # keep bash completion for "su" command which shadow package does not
    # provide.