Use File::Spec when reading directive file at top-level
authorJacob Bachmeyer <jcb@gnu.org>
Sat, 5 Nov 2022 22:46:23 +0000 (17:46 -0500)
committerJacob Bachmeyer <jcb@gnu.org>
Sat, 5 Nov 2022 22:46:23 +0000 (17:46 -0500)
gatekeeper.pl

index 4f5a44eabcdb5ce58133c622c0f90c69782f1aa5..ab5010e5012e5e38e9e32c6791555dcc01a71b89 100755 (executable)
@@ -2628,8 +2628,12 @@ foreach my $packet (@packets) {  # each list element is an array reference
   }
 
   eval {       # trap exceptions encountered while processing a packet
+    our $Scratch_dir;
+
     local $Phase = 'PV';
-    $directive_text = slurp_clearsigned_message($packet->[0]);
+
+    $directive_text = slurp_clearsigned_message
+      (File::Spec->catfile($Scratch_dir, $packet->[0]));
 
     # This would imply that the directive file did not contain a signed
     # message.  There is nothing further to do.