]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tools: (get-options.sh) refine regex for unsupported programs to avoid false positives
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Sun, 18 Jan 2026 20:15:38 +0000 (15:15 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Tue, 3 Feb 2026 04:11:08 +0000 (23:11 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tools/get-options.sh

index 0eeb1fe4b84a143a0ef803d0c4e88b8f71181691..a7299fec2c83a156b13eaa19a6fe13463afd19ef 100755 (executable)
@@ -35,7 +35,7 @@ src_file_paths="$(cd "${TOP_SRCDIR}" && grep -rE --include="*.c" --exclude="*tes
 
 # We skip these programs because they do not make use of 'struct option longopts[]'
 # which is passed to getopt(3) for command line argument parsing.
-unsupported_programs='blockdev|fsck|kill|mkfs\.cramfs|pg|renice|runuser|whereis'
+unsupported_programs='^blockdev$|^fsck$|^kill$|^mkfs\.cramfs$|^pg$|^renice$|^runuser$|^whereis$'
 
 # In general a program's source file name will be '<program_name>.c', however
 # some tools have differing file names. To handle these special cases we build