Fix bug 6673 - smbpasswd does not work with "unix password sync = yes". Revert change...
authorJeremy Allison <jra@samba.org>
Tue, 8 Sep 2009 23:22:46 +0000 (16:22 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Sep 2009 10:45:09 +0000 (12:45 +0200)
commit47270bbdb8616c6b6bfeaadc36d5f59cf01f9837
tree6d4fe115ca80cdcb1cd1767724e5d0d4bc76572f
parentba729050e682b8173ddb2cbb640b4d22c046c0a4
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.
(cherry picked from commit 91a5b8561e2f13f77fa5648f7cc373aff1701954)
source3/include/proto.h
source3/lib/util_sock.c
source3/libsmb/clientgen.c
source3/smbd/chgpasswd.c
source3/smbd/process.c