Fix bug in find_directory
authorJacob Bachmeyer <jcb@gnu.org>
Sun, 30 Oct 2022 02:04:48 +0000 (21:04 -0500)
committerJacob Bachmeyer <jcb@gnu.org>
Sun, 30 Oct 2022 02:04:48 +0000 (21:04 -0500)
Contrary to documentation, the return value was tainted.

gatekeeper.pl

index 41229d29f057e5a778c593d549e6fb099f5c30b5..6d91cb3bd9a96bd421df5f667c24e804488d9d0b 100755 (executable)
@@ -1346,7 +1346,7 @@ sub find_directory {
   die "invalid directory $values[0]"
     unless $values[0] =~ m/^($RE_filename_relative)$/;
 
-  return $values[0];
+  return $1;
 }
 
 =item $package = find_package ( $directive )