Fix bug 6673 - smbpasswd does not work with "unix password sync = yes".
[samba.git] / source3 / smbd / chgpasswd.c
index 64f988f1f730e8eab0680a4aa66857844a87eae8..eaee3d8509d3c61eb1236b20a264607afd95511c 100644 (file)
@@ -269,7 +269,7 @@ static int expect(int master, char *issue, char *expected)
                buffer[nread] = 0;
 
                while (True) {
-                       status = read_socket_with_timeout(
+                       status = read_fd_with_timeout(
                                master, buffer + nread, 1,
                                sizeof(buffer) - nread - 1,
                                timeout, &len);