summaryrefslogtreecommitdiffstats
path: root/source/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2001-12-04 22:24:17 +0000
committerHerb Lewis <herb@samba.org>2001-12-04 22:24:17 +0000
commit8aafec95cba0e8a002d20c4c0055a01690879f7a (patch)
tree06d03b27212029e57e2ac67284002b83e140b63d /source/smbd/chgpasswd.c
parentf057d62aae620b042903dae61a19628cb57aba39 (diff)
downloadsamba-8aafec95cba0e8a002d20c4c0055a01690879f7a.tar.gz
samba-8aafec95cba0e8a002d20c4c0055a01690879f7a.tar.xz
samba-8aafec95cba0e8a002d20c4c0055a01690879f7a.zip
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.
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r--source/smbd/chgpasswd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c
index 286c316b93f..741f5ef0aa1 100644
--- a/source/smbd/chgpasswd.c
+++ b/source/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);
}