+2005-06-28 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * ftp.c (getftp): Delete trailing newlines from LIST output so
+ lines don't come out with trailing \015\012 with -S.
+
2005-06-27 Hrvoje Niksic <hniksic@xemacs.org>
* mswindows.h: Remove superfluous includes.
no-buffering on opt.lfile. */
while ((line = read_whole_line (fp)) != NULL)
{
+ char *p = strchr (line, '\0');
+ while (p > line && (p[-1] == '\n' || p[-1] == '\r'))
+ *--p = '\0';
logprintf (LOG_ALWAYS, "%s\n", escnonprint (line));
xfree (line);
}