Subject: CVS commit: basesrc/usr.sbin/cron
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 03/23/2002 11:38:03
Module Name:	basesrc
Committed By:	jdolecek
Date:		Sat Mar 23 09:38:03 UTC 2002

Modified Files:
	basesrc/usr.sbin/cron: do_command.c

Log Message:
child_process(): if the input_data didn't contain any '%', the pointer
ended up _after_ the final '\0', so the code past though there are some
data to be passed to the spawned command, causing child process
crash under some circumstances; adjust input_data in this case to avoid this

XXX this is already fixed in cron 4.0-b1 (though slighly differently)


To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 basesrc/usr.sbin/cron/do_command.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.