From ae3ff2e08acf8312f462c24a403c33f198e00ea7 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Fri, 28 Oct 2022 22:08:16 -0500 Subject: [PATCH] Use File::Spec in validate_commands --- gatekeeper.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatekeeper.pl b/gatekeeper.pl index 6ac1abc..d94e99e 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -1912,7 +1912,7 @@ sub validate_commands { } # Configuration must exist for the package - -d $package_config_base . '/' . $op_header->{package} + -d File::Spec->catdir($package_config_base, $op_header->{package}) or fatal("no configuration directory for package $op_header->{package}",0); # Check that we actually have at least one command in the directive -- 2.25.1