Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] possiable bug in rpm.spec file.

2007-02-19 by Nerijus Baliunas

On Mon, 19 Feb 2007 11:08:28 -0600 Techwolf <techwolf@...> wrote:

> On my system, a Centos 3.x,
> 
> [root@xxx root]# /usr/bin/id "root"
> Segmentation fault

> If i'm reading the spec file correctly,
> 
> %pre
> /usr/bin/id "%{user}" &> /dev/null
> if [ $? -ne 0 ]
> then
>     /usr/sbin/useradd -r -d /etc/mail -s /sbin/nologin \
>         -c "GreyList Milter" %{user} >/dev/null 2>&1 || :
> fi
> 
> will cause the install/upgrade to adduser root with nologin. This could
> be a problem getting root again on some systems. I don't know if this is
> a known bug with /usr/bin/id or not.

Probably, I'd suggest checking and reporting in CentOS bugzilla.
As for the code in spec file, I'd suggest checking whether %{user}
is "root" and not adding a new user in such case. Could you please
send a patch?

Regards,
Nerijus

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.