Yahoo Groups archive

Milter-greylist

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

Message

possiable bug in rpm.spec file.

2007-02-19 by Techwolf

I look for a bugzilla and did not find one, so i'me sending this to this
list.

On my system, a Centos 3.x,

[root@xxx root]# /usr/bin/id "root"
Segmentation fault
[root@xxx root]# /usr/bin/id
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
[root@xxx root]# /usr/bin/id "techwolf"
uid=501(techwolf) gid=501(techwolf) groups=501(techwolf)
[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.

--Techwolf

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.