Fix detecting file as directory on zOS issue #8051

pull/8066/head
Mahdi Hosseini 4 years ago committed by Adam Cozzette
parent 51bdb51050
commit 7b352d318b
  1. 2
      src/google/protobuf/compiler/importer.cc

@ -500,7 +500,7 @@ io::ZeroCopyInputStream* DiskSourceTree::OpenDiskFile(
last_error_message_ = "Input file is a directory.";
return NULL;
}
#elif
#else
if (ret == 0 && S_ISDIR(sb.st_mode)) {
last_error_message_ = "Input file is a directory.";
return NULL;

Loading…
Cancel
Save