diff options
author | Jeremy Allison <jra@samba.org> | 2006-05-25 15:43:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:17:12 -0500 |
commit | c66620770d2154543a6ec99d369771b339df5463 (patch) | |
tree | 88fe4b64f6c79b47a73e2784017a1f274633c822 /source/smbd/chgpasswd.c | |
parent | 1d9dbe3b662ea757224ca4d8c991ae73bb92ae8d (diff) | |
download | samba-c66620770d2154543a6ec99d369771b339df5463.tar.gz samba-c66620770d2154543a6ec99d369771b339df5463.tar.xz samba-c66620770d2154543a6ec99d369771b339df5463.zip |
r15887: Ensure we use sys_write so we're not interrupted.
Jeremy.
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r-- | source/smbd/chgpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index 16b44a54bf9..011122ee575 100644 --- a/source/smbd/chgpasswd.c +++ b/source/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; } |