svn commit: samba r15886 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Thu May 25 15:43:04 GMT 2006


Author: jra
Date: 2006-05-25 15:43:03 +0000 (Thu, 25 May 2006)
New Revision: 15886

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

Log:
Ensure we use sys_write so we're not interrupted.
Jeremy.

Modified:
   trunk/source/smbd/chgpasswd.c


Changeset:
Modified: trunk/source/smbd/chgpasswd.c
===================================================================
--- trunk/source/smbd/chgpasswd.c	2006-05-25 15:40:43 UTC (rev 15885)
+++ trunk/source/smbd/chgpasswd.c	2006-05-25 15:43:03 UTC (rev 15886)
@@ -241,7 +241,7 @@
 			if (lp_passwd_chat_debug())
 				DEBUG(100, ("expect: sending [%s]\n", issue));
 
-			if ((len = write(master, issue, strlen(issue))) != strlen(issue)) {
+			if ((len = sys_write(master, issue, strlen(issue))) != strlen(issue)) {
 				DEBUG(2,("expect: (short) write returned %d\n", len ));
 				return False;
 			}



More information about the samba-cvs mailing list