fix msm-plugin.c svace issue: make sure dupPath is not NULL before strchr()
[platform/upstream/rpm.git] / scripts / find-supplements
1 #!/bin/bash
2
3 # This script reads filenames from STDIN and outputs any relevant provides
4 # information that needs to be included in the package.
5 IFS=$'\n'
6 filelist=($(cat))
7
8 #
9 # --- Kernel module hardware identifiers
10 # (e.g., modalias(pci:v0000109Ed00000878sv00000070sd0000FF01bc*sc*i*)
11 [ -x /usr/lib/rpm/find-supplements.ksyms ] &&
12     printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/find-supplements.ksyms "$@"
13
14 exit 0