summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-09-06 21:38:50 -0700
committerJeremy Allison <jra@samba.org>2009-09-06 21:38:50 -0700
commit43c766a14a5eeed80e57bae9fde21eb2b542c209 (patch)
treeb0330fce78ed8ec8fc30e039acf701787ebca90e /source3/include/proto.h
parent5a22c0225abe2da11e844888475cbd9c40c6c47c (diff)
downloadsamba-43c766a14a5eeed80e57bae9fde21eb2b542c209.tar.gz
samba-43c766a14a5eeed80e57bae9fde21eb2b542c209.tar.bz2
samba-43c766a14a5eeed80e57bae9fde21eb2b542c209.zip
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.
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 9314e57cc2..4bdd306c0b 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1383,7 +1383,7 @@ ssize_t read_udp_v4_socket(int fd,
char *buf,
size_t len,
struct sockaddr_storage *psa);
-NTSTATUS read_socket_with_timeout(int fd, char *buf,
+NTSTATUS read_fd_with_timeout(int fd, char *buf,
size_t mincnt, size_t maxcnt,
unsigned int time_out,
size_t *size_ret);