stacktic/fs-utils — pull request #13 by mato (2014-10-01 08:34:25+00:00)
Title: fsu_ecp: Fix "Bad file descriptor" and file mode bits

copy_file() has its file descriptors mixed up, this results in "Bad file
descriptor" when GETting or PUTting files. Further improve the error
handling and fix the permission bits of created files.