Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526702 - sys-apps/util-linux-2.25.2: missing bashcomp alias for 'su'
Summary: sys-apps/util-linux-2.25.2: missing bashcomp alias for 'su'
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: bashcomp2
  Show dependency tree
 
Reported: 2014-10-25 07:57 UTC by Michał Górny
Modified: 2020-04-03 23:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.