From 28778f4692983f32c12eca6745f5149b0783f10d Mon Sep 17 00:00:00 2001 From: Nicholas Wilson Date: Sat, 12 Sep 2026 16:10:45 +0000 Subject: [PATCH] Remove the conditional z/OS indentation in pcre2grep --- src/pcre2grep.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/pcre2grep.c b/src/pcre2grep.c index 77c294be4..9c7012e21 100644 --- a/src/pcre2grep.c +++ b/src/pcre2grep.c @@ -3457,14 +3457,17 @@ if (zos_type == __ZOS_PDS || zos_type == __ZOS_PDSE) /* Handle a z/OS directory using common code. */ -else if (zos_type == __ZOS_HFS) - { #endif /* NATIVE_ZOS */ /* Handle directories: common code for all OS */ -if (isdirectory(pathname)) +if ( +#if defined NATIVE_ZOS + zos_type == __ZOS_HFS && +#endif + isdirectory(pathname) + ) { if (dee_action == dee_SKIP || !test_incexc(lastcomp, include_dir_patterns, exclude_dir_patterns)) @@ -3542,7 +3545,7 @@ if (isdirectory(pathname)) } #ifdef WIN32 -if (iswild(pathname)) +else if (iswild(pathname)) { char buffer[1024]; char *nextfile; @@ -3583,10 +3586,6 @@ if (iswild(pathname)) } #endif -#if defined NATIVE_ZOS - } -#endif - /* If the file is not a directory, check for a regular file, and if it is not, skip it if that's been requested. Otherwise, check for an explicit inclusion or exclusion. */