[sudo-cvs] CVS commit: sudo

Todd C. Miller Todd.Miller at courtesan.com
Thu Aug 30 13:26:36 EDT 2007

Module Name:	sudo
Committed By:	millert
Date:		Thu Aug 30 17:26:36 UTC 2007

Modified Files:
	sudo: alias.c defaults.c gram.y match.c parse.c parse.h testsudoers.c

Log Message:
Use a list head struct when storing the semi-circular lists and
convert to tail queues in the process.  This will allow us to
reverse foreach loops more easily and it makes it clearer which
functions expect a list as opposed to a single member.

Add macros for manipulating lists.  Some of these should become functions.

When freeing up a list, just pop off the last item in the queue instead
of going from head to tail.  This is simpler since we don't have to
stash a pointer to the next member, we always just use the last one
in the queue until the queue is empty.

Rename match functions that take a list to have list in the name.
Break cmnd_matches() into cmnd_matches() and cmndlist_matches.

To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 sudo/alias.c
cvs rdiff -r1.61 -r1.62 sudo/defaults.c
cvs rdiff -r1.17 -r1.18 sudo/gram.y
cvs rdiff -r1.24 -r1.25 sudo/match.c
cvs rdiff -r1.203 -r1.204 sudo/parse.c sudo/visudo.c
cvs rdiff -r1.30 -r1.31 sudo/parse.h
cvs rdiff -r1.110 -r1.111 sudo/testsudoers.c

More information about the sudo-commits mailing list