diff options
author | 2020-09-23 22:46:10 +0200 | |
---|---|---|
committer | 2020-09-23 23:53:52 +0200 | |
commit | faa876cc70a5314333bf8b1df056a865e752ffb3 (patch) | |
tree | 905d64ae7d754bef1075fc91fab84d2c3d4b0a5a /sys-apps/hw-probe/files/hw-probe-1.5-disable-automatic-upload.patch | |
parent | games-simulation/openrct2: drop old version (diff) | |
download | gentoo-faa876cc70a5314333bf8b1df056a865e752ffb3.tar.gz gentoo-faa876cc70a5314333bf8b1df056a865e752ffb3.tar.bz2 gentoo-faa876cc70a5314333bf8b1df056a865e752ffb3.zip |
sys-apps/hw-probe: disable automatic data upload
Closes: https://bugs.gentoo.org/727034
Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-apps/hw-probe/files/hw-probe-1.5-disable-automatic-upload.patch')
-rw-r--r-- | sys-apps/hw-probe/files/hw-probe-1.5-disable-automatic-upload.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-apps/hw-probe/files/hw-probe-1.5-disable-automatic-upload.patch b/sys-apps/hw-probe/files/hw-probe-1.5-disable-automatic-upload.patch new file mode 100644 index 000000000000..4f16c0d87fae --- /dev/null +++ b/sys-apps/hw-probe/files/hw-probe-1.5-disable-automatic-upload.patch @@ -0,0 +1,36 @@ +From 6a211f965c21f1aa2e8612bcd7e2966ce8e8c607 Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki <conikost@gentoo.org> +Date: Wed, 23 Sep 2020 22:26:45 +0200 +Subject: [PATCH] hw-probe.pl: disable automatic upload + +Due security concerns, running 'hw-probe.pl' without any parameters +shouldn't upload directly by default all data. Instead, the user should +add '-upload' if he really wants that. + +Signed-off-by: Conrad Kostecki <conikost@gentoo.org> +--- + hw-probe.pl | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/hw-probe.pl b/hw-probe.pl +index b71f250..1bceb0e 100644 +--- a/hw-probe.pl ++++ b/hw-probe.pl +@@ -217,15 +217,13 @@ + + if($#ARGV_COPY==-1) + { # Run from STDIN +- print "Executing hw-probe -all -upload\n\n"; ++ print "Executing hw-probe -all\n\n"; + $Opt{"All"} = 1; +- $Opt{"Upload"} = 1; + } + elsif($#ARGV_COPY==0 and grep { $ARGV_COPY[0] eq $_ } ("-snap", "-flatpak")) + { # Run by desktop file +- print "Executing hw-probe -all -upload\n\n"; ++ print "Executing hw-probe -all\n\n"; + $Opt{"All"} = 1; +- $Opt{"Upload"} = 1; + + if($SNAP_DESKTOP or $FLATPAK_DESKTOP) + { # Desktop |