dovecot-2.0: lib-master: Added never_exec flag to master_service...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Mar 16 19:23:31 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/f4486ab0ebdb
changeset: 10926:f4486ab0ebdb
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 16 19:23:12 2010 +0200
description:
lib-master: Added never_exec flag to master_service_settings_read().
diffstat:
src/lib-master/master-service-settings.c | 3 +++
src/lib-master/master-service-settings.h | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r 0a469d9f1ea4 -r f4486ab0ebdb src/lib-master/master-service-settings.c
--- a/src/lib-master/master-service-settings.c Tue Mar 16 19:17:32 2010 +0200
+++ b/src/lib-master/master-service-settings.c Tue Mar 16 19:23:12 2010 +0200
@@ -109,6 +109,9 @@
const char *path;
struct stat st;
+ if (input->never_exec)
+ return;
+
path = input->config_path != NULL ? input->config_path :
master_service_get_config_path(service);
if (stat(path, &st) == 0 &&
diff -r 0a469d9f1ea4 -r f4486ab0ebdb src/lib-master/master-service-settings.h
--- a/src/lib-master/master-service-settings.h Tue Mar 16 19:17:32 2010 +0200
+++ b/src/lib-master/master-service-settings.h Tue Mar 16 19:23:12 2010 +0200
@@ -24,6 +24,7 @@
struct setting_parser_info *dyn_parsers_parent;
const char *config_path;
bool preserve_home;
+ bool never_exec;
const char *module;
const char *service;
More information about the dovecot-cvs
mailing list