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:29:32 +0000 (12:29 +0200)
commit91a5b8561e2f13f77fa5648f7cc373aff1701954
tree657e8f4f7df6809d1ecf8fddb15d819636d1cdd8
parent95cc5af5fd6150f3c54cd344b66393dbc186c2df
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