From 53f6595f69361f7ab8b35a984dbf237ec111cdd9 Mon Sep 17 00:00:00 2001 From: Sebastian Wiedenroth Date: Sun, 31 May 2015 17:31:55 +0000 Subject: [PATCH] 5975 If mailer.conf is missing mailwrapper should not forget to add arguments to the default sendmail Reviewed by: Andrew Stormont Reviewed by: Josef Sipek Reviewed by: Hans Rosenfeld Approved by: Dan McDonald --- usr/src/cmd/mailwrapper/mailwrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/src/cmd/mailwrapper/mailwrapper.c b/usr/src/cmd/mailwrapper/mailwrapper.c index 57a3fb0b4d..17037ed3c3 100644 --- a/usr/src/cmd/mailwrapper/mailwrapper.c +++ b/usr/src/cmd/mailwrapper/mailwrapper.c @@ -103,6 +103,8 @@ main(int argc, char *argv[], char *envp[]) addarg(&al, argv[0]); if ((config = fopen(_PATH_MAILERCONF, "r")) == NULL) { + for (i = 1; i < argc; i++) + addarg(&al, argv[i]); addarg(&al, NULL); openlog(getprogname(), LOG_PID, LOG_MAIL); syslog(LOG_INFO, "cannot open %s, using %s as default MTA", -- 2.11.4.GIT