Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915215 - net-misc/taylor-uucp: do not use `usermod`
Summary: net-misc/taylor-uucp: do not use `usermod`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-05 15:07 UTC by SpanKY
Modified: 2023-10-05 19:57 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 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(-)