While uploading large files, it is possible to RETR an incomplete file. FTPD opens files for writing with 0644 attributes using fopen (look into ftpd.c:store function); it is easy to change its behaviour to open these files in 0600 mode using open() and after upload is done (or broken) to fchmod the file into 0644. Fix: I have modified a little ftpd.c file (functions store(), guniquefd(), receive_data() ); please e-mail me at dysoft@kco.com.pl if anyone is interested. How-To-Repeat: Run ftpd, then upload a large file (abt 100MB should do on 10MBIT LAN) and simultaneously try to get it.
Kinda makes sense to me, not to let people download incomplete files.
State Changed From-To: open->feedback To submitter: do you still have the patch available?
State Changed From-To: feedback->suspended Submitter is no longer using FreeBSD and no longer has the patches available. Mark this as suspended in case someone wants to pick up this idea.
For bugs matching the following conditions: - Status == In Progress - Assignee == "bugs@FreeBSD.org" - Last Modified Year <= 2017 Do - Set Status to "Open"