SCCS-vsn: libexec/ftpd/ftpd.c 5.15
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)ftpd.c 5.14 (Berkeley) %G%";
+static char sccsid[] = "@(#)ftpd.c 5.15 (Berkeley) %G%";
}
(void) close(pdata);
pdata = s;
}
(void) close(pdata);
pdata = s;
- reply(150, "Openning data connection for %s (%s,%d)%s.",
- name, inet_ntoa(from.sin_addr),
- ntohs(from.sin_port), sizebuf);
+ reply(150, "Opening data connection for %s (%s mode)%s.",
+ name, type == TYPE_A ? "ascii" : "binary", sizebuf);
return(fdopen(pdata, mode));
}
if (data >= 0) {
return(fdopen(pdata, mode));
}
if (data >= 0) {
data = -1;
return (NULL);
}
data = -1;
return (NULL);
}
- reply(150, "Opening data connection for %s (%s,%d)%s.",
- name, inet_ntoa(data_dest.sin_addr),
- ntohs(data_dest.sin_port), sizebuf);
+ reply(150, "Opening data connection for %s (%s mode)%s.",
+ name, type == TYPE_A ? "ascii" : "binary", sizebuf);