aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-09-06 07:44:32 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-09-06 07:44:32 +0000
commit47f1428e2b0f5b57e0f11c18a4e47cec4bf97e25 (patch)
treea4bc3a03aa1a5d2d65f29df82a1686eada9a9590
parent17f6ecdfa0d981f3a02276caf956653e1e7ea556 (diff)
downloadrpmdrake-47f1428e2b0f5b57e0f11c18a4e47cec4bf97e25.tar
rpmdrake-47f1428e2b0f5b57e0f11c18a4e47cec4bf97e25.tar.gz
rpmdrake-47f1428e2b0f5b57e0f11c18a4e47cec4bf97e25.tar.bz2
rpmdrake-47f1428e2b0f5b57e0f11c18a4e47cec4bf97e25.tar.xz
rpmdrake-47f1428e2b0f5b57e0f11c18a4e47cec4bf97e25.zip
protext /etc/urpmi/proxy.cfg from world read because it
potentially contains a clear password
-rw-r--r--grpmi/curl_download/curl_download.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/grpmi/curl_download/curl_download.pm b/grpmi/curl_download/curl_download.pm
index 7c6ec472..7a3e07fb 100644
--- a/grpmi/curl_download/curl_download.pm
+++ b/grpmi/curl_download/curl_download.pm
@@ -24,9 +24,11 @@ sub readproxy {
sub writeproxy {
my ($proxy, $proxy_user) = @_;
- output("/etc/urpmi/proxy.cfg",
+ my $f = '/etc/urpmi/proxy.cfg';
+ output($f,
if_($proxy, "http_proxy=$proxy\n"),
if_($proxy_user, "proxy_user=$proxy_user\n"));
+ chmod 0600, $f;
}
sub download {