mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
r15887: Ensure we use sys_write so we're not interrupted.
Jeremy.
(This used to be commit c66620770d
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
9a38c05154
commit
9f6631b469
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user