Fix bug 6673 - smbpasswd does not work with "unix password sync = yes".
authorJeremy Allison <jra@samba.org>
Mon, 7 Sep 2009 04:38:50 +0000 (21:38 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 7 Sep 2009 04:38:50 +0000 (21:38 -0700)
commit43c766a14a5eeed80e57bae9fde21eb2b542c209
treeb0330fce78ed8ec8fc30e039acf701787ebca90e
parent5a22c0225abe2da11e844888475cbd9c40c6c47c
Fix bug 6673 - smbpasswd does not work with "unix password sync = yes".
Revert change from 3.3 -> 3.4 with read_socket_with_timeout changed
from sys_read() to sys_recv(). read_socket_with_timeout() is called
with non-fd's (with a pty in chgpasswd.c and with a disk file in
lib/dbwrap_file.c via read_data()). recv works for the disk file,
but not the pty. Change the name of read_socket_with_timeout() to
read_fd_with_timeout() to make this clear (and add comments).
Jeremy.
source3/include/proto.h
source3/lib/util_sock.c
source3/libsmb/clientgen.c
source3/smbd/chgpasswd.c
source3/smbd/process.c