https://bugzilla.novell.com/show_bug.cgi?id=361559
User brock.noland@thomson.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=361559#c4
--- Comment #4 from brock noland 2008-03-14 09:29:07 MST ---
In order for the second upload to block, you need
lock_upload_files=YES
Without that option, uploads will not be locked and simultaneous uploads will
corrupt files. I believe this was added in 2.0.3.
After fixing as previously described (removing O_APPEND) and turning file
locking on, vsftpd works as it should. See below:
$ date; curl -s -T test1 --user noland:password
ftp://`hostname`/vsftp-file-locking; date
Fri Mar 14 10:19:52 CDT 2008
Fri Mar 14 10:20:17 CDT 2008
$ date; curl -s -T test2 --user noland:password
ftp://`hostname`/vsftp-file-locking; date
Fri Mar 14 10:19:54 CDT 2008
Fri Mar 14 10:20:44 CDT 2008
$ ls -l test* vsftp-file-locking
-rw-r--r-- 1 noland noland 512000000 Mar 14 09:59 test1
-rw-r--r-- 1 noland noland 512000000 Mar 14 10:03 test2
-rw------- 1 noland noland 512000000 Mar 14 10:20 vsftp-file-locking
noland@swat:~$ md5sum test* vsftp-file-locking
5d39c60a88631ced7dd766904e2a789d test1
2a929f81fe80636097ac6a4d936f511a test2
2a929f81fe80636097ac6a4d936f511a vsftp-file-locking
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.