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

Bug 915215

Summary: net-misc/taylor-uucp: do not use `usermod`
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: floppym, joakim.tjernlund
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2023-10-05 15:07:49 UTC
the net-misc/taylor-uucp ebuild does:

pkg_preinst() {
    usermod -s /bin/bash uucp || die   
}

pkg_postrm() {
    usermod -s /bin/false uucp || die
}


usermod is not portable, this doesn't handle cross-compilation, or cross-ROOT installs.  just delete it.
Comment 1 Mike Gilbert gentoo-dev 2023-10-05 19:51:52 UTC
Nasty! Thanks for pointing it out.
Comment 2 Larry the Git Cow gentoo-dev 2023-10-05 19:57:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8a96f916dc3adb981ccc09bc3a59fe3e5112698

commit c8a96f916dc3adb981ccc09bc3a59fe3e5112698
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-10-05 19:55:25 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-10-05 19:56:34 +0000

    net-misc/taylor-uucp: drop usermod calls
    
    If a specific shell is required for the uucp user, it must be handled in
    acct-user/uucp and/or sys-apps/baselayout.
    
    Bug: https://bugs.gentoo.org/19128
    Closes: https://bugs.gentoo.org/915215
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../{taylor-uucp-1.07-r5.ebuild => taylor-uucp-1.07-r6.ebuild} | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)