Fix bug 6673 - smbpasswd does not work with "unix password sync = yes".
commitb01a7fce838329fa751dda34eaa5c49b2985f065
authorJeremy Allison <jra@samba.org>
Mon, 7 Sep 2009 04:38:50 +0000 (6 21:38 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 7 Sep 2009 16:30:46 +0000 (7 09:30 -0700)
tree956b117c58693c30c772dedba679a63e9a5abe63
parentb76a027d4ff46383a31c5ba26f5a27cf10ed2517
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