Skip to content

Commit

Permalink
generate_sbom: add no_chdir to find call
Browse files Browse the repository at this point in the history
Otherwise sbom generation will fail if not called with an
absolute path.
  • Loading branch information
mlschroe committed Sep 17, 2024
1 parent 72ec499 commit 1e04a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_sbom
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ sub read_pkgs_from_product_directory {
my $fn = $File::Find::name;
push @rpms, read_rpm($fn) if $fn =~ /\.rpm$/;
};
find($addrpmfile, $dir);
find({'wanted' => $addrpmfile, 'no_chdir' => 1}, $dir);
return \@rpms;
}

Expand Down

0 comments on commit 1e04a1e

Please sign in to comment.