+ fd = open(filepath, O_RDONLY);
+ if (fd < 0) {
+ pb_log("%s: open failed: %s : %s\n", __func__, filepath,
+ strerror(errno));
+ continue;
+ }
+ if (fstat(fd, &stat)) {
+ pb_log("%s: fstat failed: %s : %s\n", __func__,
+ filepath, strerror(errno));
+ continue;
+ }