+-------------------------------------------------------------------
+Wed Sep 24 15:29:51 CEST 2014 - aschnell@suse.de
+
+- resolved some code issues found by code analysis
+
-------------------------------------------------------------------
Wed Aug 27 17:55:32 CEST 2014 - dsterba@suse.cz
}
struct stat buf;
- fstat(dirfd, &buf);
+ if (fstat(dirfd, &buf) != 0)
+ {
+ y2err("fstat failed path:" << base_path << " error:" << stringerror(errno));
+ throw IOErrorException();
+ }
+
if (!S_ISDIR(buf.st_mode))
{
y2err("not a directory path:" << base_path);
}
struct stat buf;
- fstat(dirfd, &buf);
+ if (fstat(dirfd, &buf) != 0)
+ {
+ y2err("fstat failed path:" << base_path << " error:" << stringerror(errno));
+ throw IOErrorException();
+ }
+
if (!S_ISDIR(buf.st_mode))
{
y2err("not a directory path:" << dir.fullname(name));