[dovecot-cvs] dovecot/src/login-common common.h, 1.3, 1.4 main.c, 1.19, 1.20

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


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

Modified Files:
	common.h main.c 
Log Message:
Added login_greeting and login_greeting_capability settings.



Index: common.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/common.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- common.h	22 Aug 2003 02:42:13 -0000	1.3
+++ common.h	27 Sep 2004 15:58:56 -0000	1.4
@@ -4,7 +4,8 @@
 #include "lib.h"
 
 extern int disable_plaintext_auth, process_per_connection, verbose_proctitle;
-extern int verbose_ssl;
+extern int verbose_ssl, greeting_capability;
+char *greeting;
 extern unsigned int max_logging_users;
 extern unsigned int login_process_uid;
 extern struct auth_client *auth_client;

Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/main.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- main.c	12 Sep 2004 14:55:47 -0000	1.19
+++ main.c	27 Sep 2004 15:58:56 -0000	1.20
@@ -18,7 +18,8 @@
 #include <syslog.h>
 
 int disable_plaintext_auth, process_per_connection, verbose_proctitle;
-int verbose_ssl;
+int verbose_ssl, greeting_capability;
+char *greeting;
 unsigned int max_logging_users;
 unsigned int login_process_uid;
 struct auth_client *auth_client;
@@ -162,6 +163,11 @@
 	value = getenv("MAX_LOGGING_USERS");
 	max_logging_users = value == NULL ? 0 : strtoul(value, NULL, 10);
 
+	greeting = getenv("GREETING");
+	if (greeting == NULL)
+		greeting = PACKAGE" ready.";
+	greeting_capability = getenv("GREETING_CAPABILITY") != NULL;
+
 	value = getenv("PROCESS_UID");
 	if (value == NULL)
 		i_fatal("BUG: PROCESS_UID environment not given");



More information about the dovecot-cvs mailing list