Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compaudit slow with many groups
- X-seq: zsh-workers 19672
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: compaudit slow with many groups
- Date: Mon, 22 Mar 2004 20:12:03 +0000
- In-reply-to: "Danek Duvall"'s message of "Sun, 21 Mar 2004 10:46:56 PST." <20040321184656.GD17245@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Danek Duvall wrote:
> Hm. That's pretty obviously broken. But I think this is right:
>
> if ((UID == EUID )); then
> getent group $LOGNAME | IFS=: read GROUP _i_pw _i_gid GROUPMEM
> else
> getent group $EGID | IFS=: read GROUP _i_pw _i_gid GROUPMEM
> fi
I've committed this and the fix for the typo Danek spotted.... slug it
out if you think it should be done another way.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author