of just \n
SCCS-vsn: libexec/ftpd/ftpd.c 5.30
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)ftpd.c 5.29 (Berkeley) %G%";
+static char sccsid[] = "@(#)ftpd.c 5.30 (Berkeley) %G%";
- fprintf(dout, "%s\n", dirname);
+ fprintf(dout, "%s%s\n", dirname,
+ type == TYPE_A ? "\r" : "");
byte_count += strlen(dirname) + 1;
continue;
} else if ((st.st_mode&S_IFMT) != S_IFDIR)
byte_count += strlen(dirname) + 1;
continue;
} else if ((st.st_mode&S_IFMT) != S_IFDIR)
transflag++;
}
if (nbuf[0] == '.' && nbuf[1] == '/')
transflag++;
}
if (nbuf[0] == '.' && nbuf[1] == '/')
- fprintf(dout, "%s\n", &nbuf[2]);
+ fprintf(dout, "%s%s\n", &nbuf[2],
+ type == TYPE_A ? "\r" : "");
- fprintf(dout, "%s\n", nbuf);
+ fprintf(dout, "%s%s\n", nbuf,
+ type == TYPE_A ? "\r" : "");
byte_count += strlen(nbuf) + 1;
}
}
byte_count += strlen(nbuf) + 1;
}
}