From 9f6631b469366e3617437a12cf40b1a8c7479ad4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 25 May 2006 15:43:12 +0000 Subject: r15887: Ensure we use sys_write so we're not interrupted. Jeremy. (This used to be commit c66620770d2154543a6ec99d369771b339df5463) --- source3/smbd/chgpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c index 16b44a54bf..011122ee57 100644 --- a/source3/smbd/chgpasswd.c +++ b/source3/smbd/chgpasswd.c @@ -241,7 +241,7 @@ static int expect(int master, char *issue, char *expected) 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; } -- cgit