From: Jacob Bachmeyer Date: Sat, 29 Oct 2022 03:08:16 +0000 (-0500) Subject: Use File::Spec in validate_commands X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ae3ff2e08acf8312f462c24a403c33f198e00ea7;p=gatekeeper.git Use File::Spec in validate_commands --- 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