summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2011-03-17 09:00:14 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-03-17 09:18:07 (GMT)
commitc0535e8ecce439972c58c87a926e1ddad1c32ad4 (patch) (side-by-side diff)
tree83702e527702263f86510a1bd36fa619e063ec0d /src/main.c
parent3cb8a6a90cc336d773110a250a7a38a0ac2b2514 (diff)
downloadmailfromd-c0535e8ecce439972c58c87a926e1ddad1c32ad4.tar.gz
mailfromd-c0535e8ecce439972c58c87a926e1ddad1c32ad4.tar.bz2
Improve interaction with mtasim.
Jan Rafaj reported that the use of mtasim -Xauto may result in the subordinate mailfromd removing the UNIX communication sockets of the main running process. This can happen if: (1) there is a mailfromd process running on the box where mtasim is run and (2) the user does not supply --no-site-config option to the subordinate. * src/main.c (parse_opt) <OPTION_MTASIM>: Inhibit loading of the default configuration files.
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 184b330..953d6a7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -625,6 +625,8 @@ parse_opt(int key, char *arg, struct argp_state *state)
case OPTION_MTASIM:
mtasim_option = 1;
server_flags |= MF_SERVER_FOREGROUND;
+ mu_load_site_rcfile = 0;
+ mu_load_user_rcfile = 0;
break;
case OPTION_SHOW_DEFAULTS:

Return to:

Send suggestions and report system problems to the System administrator.