lib: Fix copy_file when filesize is FILESIZE_MAX
Using tftp command does not work proper when files
have FILESIZE_MAX, as copy_file and show_progress
can not handle it. Check the file size for FILESIZE_MAX
and handle it as file size = 0.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8d7f51a commit e2b67d6a6a4deccb4b9041124fc251c12a81ecf9
@Teresa Gámez Teresa Gámez authored on 27 Sep 2013
Sascha Hauer committed on 27 Sep 2013
Showing 2 changed files
View
lib/copy_file.c
View
lib/show_progress.c