tftp-hpa: bug fix on empty file put error
authorzhangxiao <xiao.zhang@windriver.com>
Thu, 4 Sep 2014 09:40:17 +0000 (17:40 +0800)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:42:25 +0000 (08:42 -0800)
commit84c8659daa18341ebb637ee624e263d8757bd9d9
tree6bcdd98a5461ff1e941264afc7679ab847c69710
parent8059bdec5712d6eff60e9133e6048524f70ce806
tftp-hpa: bug fix on empty file put error

With the feature that checking the disk filled up, the return value of
function write_behind was checked and used to detect the disk status.
While for empty file, without data being written, this function will
return -1 thus the disk filled up error was miss-raised. Fix it.

(From meta-openembedded rev: ed698c4dba606b9d0c36c68023004046417db251)

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-networking/recipes-daemons/tftp-hpa/files/tftp-hpa-bug-fix-on-empty-file-put-error.patch [new file with mode: 0644]
meta-openembedded/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb