[dovecot-cvs] dovecot/src/master auth-process.c,1.13,1.14

cras at procontrol.fi cras at procontrol.fi
Sun Dec 1 15:50:47 EET 2002


Update of /home/cvs/dovecot/src/master
In directory danu:/tmp/cvs-serv30992

Modified Files:
	auth-process.c 
Log Message:
whops, accidentally committed some test code.



Index: auth-process.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/auth-process.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- auth-process.c	1 Dec 2002 13:48:50 -0000	1.13
+++ auth-process.c	1 Dec 2002 13:50:45 -0000	1.14
@@ -208,9 +208,6 @@
 
 	i_assert(listen_fd > 2);
 
-	if (net_accept(listen_fd, NULL, NULL) == -2)
-		i_fatal("net_accept(1) failed: %m");
-
 	/* set correct permissions */
 	(void)chown(path, set_login_uid, set_login_gid);
 
@@ -228,14 +225,8 @@
 	if (dup2(null_fd, 2) < 0)
 		i_fatal("login: dup2() failed: %m");
 
-	if (net_accept(listen_fd, NULL, NULL) == -2)
-		i_fatal("net_accept(2) failed: %m");
-
 	clean_child_process();
 
-	if (net_accept(listen_fd, NULL, NULL) == -2)
-		i_fatal("net_accept(3) failed: %m");
-
 	/* move login communication handle to 3. do it last so we can be
 	   sure it's not closed afterwards. */
 	if (listen_fd != 3) {
@@ -248,9 +239,6 @@
 	   clean_child_process() since it clears environment */
 	restrict_access_set_env(config->user, pwd->pw_uid, pwd->pw_gid,
 				config->chroot);
-
-	if (net_accept(3, NULL, NULL) == -2)
-		i_fatal("net_accept(4) failed: %m");
 
 	/* set other environment */
 	env_put(t_strdup_printf("AUTH_PROCESS=%d", (int) getpid()));




More information about the dovecot-cvs mailing list