Hi Jeremy,

> - Log -----------------------------------------------------------------
> commit 43c766a14a5eeed80e57bae9fde21eb2b542c209
> Author: Jeremy Allison <[email protected]>
> Date:   Sun Sep 6 21:38:50 2009 -0700
> 
>     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.

I think we should have 2 functions then.
We need to use sys_recv() on sockets, otherwise our socket_wrapper pcap
support doesn't work.

metze

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to