From: Frank Lichtenheld Date: Mon, 24 Sep 2007 17:37:53 +0000 (+0200) Subject: dpkg-shlibdeps: Fix two option regexps X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d131b99fdb144d62cf93a1f3b2d75de4256d3555;p=dpkg dpkg-shlibdeps: Fix two option regexps regexps -x and -v were missing the starting ^ which could make them match random other stuff, e.g. filenames. --- diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl index 239e00a9..5f435866 100755 --- a/scripts/dpkg-shlibdeps.pl +++ b/scripts/dpkg-shlibdeps.pl @@ -69,9 +69,9 @@ foreach (@ARGV) { $ignore_missing_info = 1; } elsif (m/^-t(.*)$/) { $packagetype = $1; - } elsif (m/-v$/) { + } elsif (m/^-v$/) { $debug = 1; - } elsif (m/-x(.*)$/) { + } elsif (m/^-x(.*)$/) { push @exclude, $1; } elsif (m/^-/) { usageerr(sprintf(_g("unknown option \`%s'"), $_));