rfelker reports in Bug 683 that we leak file descriptors if the fcntl() fails ... so fix that.  add back in fstat() ofter we open() the directory as we need the blocksize further down in the code.  unify the memory error handling to shrink the code there a little.
rfelker reports in Bug 683 that we leak file descriptors if the fcntl() fails ... so fix that.  add back in fstat() ofter we open() the directory as we need the blocksize further down in the code.  unify the memory error handling to shrink the code there a little.

joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc