[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: discarding root privileges in suid perl



>>>>> "Brian" == Brian May <bam@debian.org> writes:

    Brian>       die "Can't drop privileges" unless $UID == $EUID &&
    Brian> $GID eq $EGID;

This looks suspicious. Try ($UID == $EUID) && ($GID == $EGID). Both
the parens are needed, and your 'eq' there should be ==.

Ben

-- 
Brought to you by the letters R and U and the number 14.
"What's different, Pete, about the 69 that makes it so exciting to you?"
Debian GNU/Linux maintainer of Gimp and GTK+ -- http://www.debian.org/



Reply to: