[sudo-cvs] CVS commit: sudo

Todd.Miller at courtesan.com Todd.Miller at courtesan.com
Wed Oct 29 13:26:43 EDT 2008

Module Name:	sudo
Committed By:	millert
Date:		Wed Oct 29 17:26:43 UTC 2008

Modified Files:
	sudo: match.c sudo.c testsudoers.c

Log Message:
Use MAXHOSTNAMELEN+1 when allocating host/domain name since some
systems do not include space for the NUL in the size.  Also manually
NUL-terminate buffer from gethostname() since POSIX is wishy-washy on this.

To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 sudo/match.c
cvs rdiff -u -r1.490 -r1.491 sudo/sudo.c
cvs rdiff -u -r1.123 -r1.124 sudo/testsudoers.c

More information about the sudo-commits mailing list