vsftpd fatal flaw - can C help

I am not a C programmer, so I was hoping someone can help with the following: vsftpd is programmed in C, but it has a fatal flaw whereby uploads can be copied by Samba before the upload is complete (this includes the latest vsftpd daemon) This is because vsftpd does not support file locking, unlike the AIX ftp server for example. Proftpd also has a way around this problem by hiding files with the hidden stor feature, which gives the file a randon hidden file name until the upload is complete. So, would it be possible to insert one of these features or both within vsftpd, by analyzing the source code and making the necessary changes?
I have contacted the developer but no feedback yet

Instead of changing vsftpd, change what you are doing slightly.

sFTP the files into /tmp or some other location, then once the file has arrived

mv /tmp/file /dest/file

vsftp is open source. That means if you have to have it changed:

  1. you will have to make code changes for every new release. What if there is a security hole found?
  2. you get to support any changes you make that cause problems.

I'd leave it alone and change what you're doing i.e., get another sftp or find a simple workaround.

Thanks for your response... I have implemented a work around by moving the file to a different location when the upload is complete. But this is a messy solution. I really can not understand why the developer has not implemented a solution into his code already.....