summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-05-25 15:43:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:12 -0500
commit9f6631b469366e3617437a12cf40b1a8c7479ad4 (patch)
tree181072e301b7f63969a4c56f98763d19baf83f13 /source3
parent9a38c05154879b2fd89da3a745bd290c97e0a9ce (diff)
downloadsamba-9f6631b469366e3617437a12cf40b1a8c7479ad4.tar.gz
samba-9f6631b469366e3617437a12cf40b1a8c7479ad4.tar.bz2
samba-9f6631b469366e3617437a12cf40b1a8c7479ad4.zip
r15887: Ensure we use sys_write so we're not interrupted.
Jeremy. (This used to be commit c66620770d2154543a6ec99d369771b339df5463)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/chgpasswd.c2
1 files changed, 1 insertions, 1 deletions
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;
}