[Filesystem] Fixed errno issue found by Coverity system 76/180176/1
authorPiotr Kosko <p.kosko@samsung.com>
Fri, 25 May 2018 08:26:20 +0000 (10:26 +0200)
committerPiotr Kosko <p.kosko@samsung.com>
Fri, 25 May 2018 08:27:12 +0000 (10:27 +0200)
commit9a14300ec306dcec060a255ee39c5955a5de38c1
tree162def494aa63ac64d9a9bbd7fe1870008eff726
parent09282c871693059d314a2100ced77fa1171ac258
[Filesystem] Fixed errno issue found by Coverity system

[Bug] Coverity issue 835432
  Documentation of nftw() function says that the result can be -1,
  which is not valid error code for system_error constructor. To
  resolve such problem, the -1 value is translated to IOError code.

[Verification] Code compiles without errors.
  TCT passrate of filesystem module is 100%.

Change-Id: I92805294270b4969fd545a413c03c565fdef7afd
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
src/filesystem/filesystem_utils.cc