mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Sync with devel
This commit is contained in:
parent
6f47b40d20
commit
9ddc981d79
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user