From 7b352d318b9ae8f65ddc85b7eb7e9921911cec6f Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Tue, 17 Nov 2020 16:25:13 -0500 Subject: [PATCH] Fix detecting file as directory on zOS issue #8051 --- src/google/protobuf/compiler/importer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/importer.cc b/src/google/protobuf/compiler/importer.cc index 4e1005b7020..23a4effe637 100644 --- a/src/google/protobuf/compiler/importer.cc +++ b/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;