[pve-devel] [PATCH pve-manager 1/1] Only check deb sources.list entries
Rhonda D'Vine
rhonda at deb.at
Fri Jul 9 09:24:41 CEST 2021
The check isn't specific enough, it also catches deb-src entries and
would give a false impression of security in certain circumstances, or
lead to false negatives in case you have a deb-src entry for
buster/updates even though you have bullseye-security in just the next
line -- something that isn't that uncommon for developers.
Signed-off-by: Rhonda D'Vine <rhonda at deb.at>
---
PVE/CLI/pve6to7.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/CLI/pve6to7.pm b/PVE/CLI/pve6to7.pm
index fb928a9c..30adcb19 100644
--- a/PVE/CLI/pve6to7.pm
+++ b/PVE/CLI/pve6to7.pm
@@ -1010,7 +1010,7 @@ sub check_security_repo {
($line) = split(/#/, $line);
- next if $line !~ m/^deb/; # is case sensitive
+ next if $line !~ m/^deb[[:space:]]/; # is case sensitive
my $suite;
--
2.30.2
More information about the pve-devel
mailing list