svn commit: samba r7300 - in trunk/source/nsswitch: .

vlendec at samba.org vlendec at samba.org
Sun Jun 5 08:53:03 GMT 2005


Author: vlendec
Date: 2005-06-05 08:53:03 +0000 (Sun, 05 Jun 2005)
New Revision: 7300

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7300

Log:
In winbind children, there's no stateful requests around.

Volker

Modified:
   trunk/source/nsswitch/winbindd_dual.c


Changeset:
Modified: trunk/source/nsswitch/winbindd_dual.c
===================================================================
--- trunk/source/nsswitch/winbindd_dual.c	2005-06-05 08:29:57 UTC (rev 7299)
+++ trunk/source/nsswitch/winbindd_dual.c	2005-06-05 08:53:03 UTC (rev 7300)
@@ -579,22 +579,9 @@
 
 		/* process full rquests */
 		if (state.read_buf_len == sizeof(state.request)) {
-			DEBUG(4,("dual daemon request %d\n", (int)state.request.cmd));
+			DEBUG(4,("child daemon request %d\n",
+				 (int)state.request.cmd));
 
-			/* special handling for the stateful requests */
-			switch (state.request.cmd) {
-			case WINBINDD_GETPWENT:
-				winbindd_setpwent(&state);
-				break;
-				
-			case WINBINDD_GETGRENT:
-			case WINBINDD_GETGRLST:
-				winbindd_setgrent(&state);
-				break;
-			default:
-				break;
-			}
-
 			state.request.null_term = '\0';
 			child_process_request(domain, &state);
 
@@ -603,10 +590,6 @@
 						     &state.response);
 
 			SAFE_FREE(state.response.extra_data);
-			free_getent_state(state.getpwent_state);
-			free_getent_state(state.getgrent_state);
-			state.getpwent_state = NULL;
-			state.getgrent_state = NULL;
 
 			/* We just send the result code back, the result
 			 * structure needs to be fetched via the



More information about the samba-cvs mailing list