Sync with devel

This commit is contained in:
Kurt Zeilenga 2001-03-15 04:11:25 +00:00
parent 6f47b40d20
commit 9ddc981d79

View File

@ -218,6 +218,11 @@ main ( int argc, char **argv )
case 'f': /* who it's from & where errors should go */
mailfrom = strdup( optarg );
/* Deal with <> */
if ( mailfrom[0] == '\0' ) {
free( mailfrom );
mailfrom = strdup( "<>" );
}
for ( j = 0; sendmailargs[j] != NULL; j++ ) {
if ( strcmp( sendmailargs[j], "-f" ) == 0 ) {
sendmailargs[j+1] = mailfrom;