[dovecot-cvs] dovecot/src/master login-process.c, 1.57, 1.58 master-settings.c, 1.68, 1.69 master-settings.h, 1.44, 1.45

cras at dovecot.org cras at dovecot.org
Mon Sep 27 18:58:59 EEST 2004


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv3557/src/master

Modified Files:
	login-process.c master-settings.c master-settings.h 
Log Message:
Added login_greeting and login_greeting_capability settings.



Index: login-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/login-process.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- login-process.c	18 Jul 2004 02:30:56 -0000	1.57
+++ login-process.c	27 Sep 2004 15:58:56 -0000	1.58
@@ -428,7 +428,10 @@
 					set->login_max_logging_users));
 	}
 
-	env_put(t_strdup_printf("PROCESS_UID=%s", dec2str(pid)));
+	env_put(t_strconcat("PROCESS_UID=", dec2str(pid), NULL));
+	env_put(t_strconcat("GREETING=", set->login_greeting, NULL));
+	if (set->login_greeting_capability)
+		env_put("GREETING_CAPABILITY=1");
 }
 
 static pid_t create_login_process(struct login_group *group)

Index: master-settings.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/master-settings.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- master-settings.c	23 Sep 2004 22:29:13 -0000	1.68
+++ master-settings.c	27 Sep 2004 15:58:56 -0000	1.69
@@ -64,9 +64,11 @@
 	DEF(SET_STR, login_dir),
 	DEF(SET_STR, login_executable),
 	DEF(SET_STR, login_user),
+	DEF(SET_STR, login_greeting),
 
 	DEF(SET_BOOL, login_process_per_connection),
 	DEF(SET_BOOL, login_chroot),
+	DEF(SET_BOOL, login_greeting_capability),
 
 	DEF(SET_INT, login_process_size),
 	DEF(SET_INT, login_processes_count),
@@ -227,9 +229,11 @@
 	MEMBER(login_dir) "login",
 	MEMBER(login_executable) NULL,
 	MEMBER(login_user) "dovecot",
+	MEMBER(login_greeting) "Dovecot ready.",
 
 	MEMBER(login_process_per_connection) TRUE,
 	MEMBER(login_chroot) TRUE,
+	MEMBER(login_greeting_capability) FALSE,
 
 	MEMBER(login_process_size) 32,
 	MEMBER(login_processes_count) 3,

Index: master-settings.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/master-settings.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- master-settings.h	23 Sep 2004 22:29:13 -0000	1.44
+++ master-settings.h	27 Sep 2004 15:58:56 -0000	1.45
@@ -37,9 +37,11 @@
 	const char *login_dir;
 	const char *login_executable;
 	const char *login_user;
+	const char *login_greeting;
 
 	int login_process_per_connection;
 	int login_chroot;
+	int login_greeting_capability;
 
 	unsigned int login_process_size;
 	unsigned int login_processes_count;



More information about the dovecot-cvs mailing list