[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] subdaemon execl not using routerprog



Hi, I'm sending again this patch (I've remade it for 2006-12-05 cvs)


When the smtpserver starts you can set the arg [-R rtrprog]
so it calls another routerprog
but in smtpserver/subdaemons.c, this option is ignored.

  execl(smtpserver, "smtpserver", "-I", "sub-router",
        "-Z", zconf, NULL);


Should'n be something like:

  execl(smtpserver, "smtpserver", "-I", "sub-router",
        "-Z", zconf, routerprog ? "-R" : NULL, routerprog, NULL);


I think the other execl's have the same problem (didn't correct them)



------------------------------------------------------------------------------
diff -Naur zmailer.ORIG/smtpserver/subdaemons.c zmailer/smtpserver/subdaemons.c
--- zmailer.ORIG/smtpserver/subdaemons.c	2006-11-30 21:04:47.000000000 -0300
+++ zmailer/smtpserver/subdaemons.c	2006-12-05 11:05:47.000000000 -0300
@@ -128,7 +128,7 @@
 	      /* exec here ??? */
 	      if (smtpserver)
 		execl(smtpserver, "smtpserver", "-I", "sub-router",
-		      "-Z", zconf, NULL);
+		      "-Z", zconf, routerprog ? "-R" : NULL, routerprog, NULL);
 	      subdaemon_router(0);
 	      /* never reached */
 	    }
------------------------------------------------------------------------------


Thanks 
Saludos
--  
Leonardo Helman
Pert Consultores
Argentina
diff -Naur zmailer.ORIG/smtpserver/subdaemons.c zmailer/smtpserver/subdaemons.c
--- zmailer.ORIG/smtpserver/subdaemons.c	2006-11-30 21:04:47.000000000 -0300
+++ zmailer/smtpserver/subdaemons.c	2006-12-05 11:05:47.000000000 -0300
@@ -128,7 +128,7 @@
 	      /* exec here ??? */
 	      if (smtpserver)
 		execl(smtpserver, "smtpserver", "-I", "sub-router",
-		      "-Z", zconf, NULL);
+		      "-Z", zconf, routerprog ? "-R" : NULL, routerprog, NULL);
 	      subdaemon_router(0);
 	      /* never reached */
 	    }