From 61fc7b98a73351f92646613989a207908e934d99 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 4 Dec 2001 22:24:17 +0000 Subject: Merge from 2.2 If you do not have one more expect than issue when talking to the passwd program you will not send the last issue. (This used to be commit 8aafec95cba0e8a002d20c4c0055a01690879f7a) --- source3/smbd/chgpasswd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c index 286c316b93..741f5ef0aa 100644 --- a/source3/smbd/chgpasswd.c +++ b/source3/smbd/chgpasswd.c @@ -312,6 +312,12 @@ static int talktochild(int master, char *seq) pwd_sub(issue); } + if (!strequal(issue, ".")) { + /* we have one final issue to send */ + fstrcpy(expected, "."); + if (!expect(master, issue, expected)) + return False; + } return (count > 0); } -- cgit