Fixed a security hole: .cvspass was in the webtree, and thus readable via the server.
This commit is contained in:
Родитель
7c18507bc5
Коммит
c1fae03af7
|
@ -29,7 +29,13 @@ $perlbin = "/tools/ns/bin/perl5.004";
|
|||
#$cvs = "/usr/bin/cvs";
|
||||
#$whoami = "/usr/bin/whoami";
|
||||
#$perlbin = "/usr/bin/perl";
|
||||
|
||||
#$curdir = `pwd`;
|
||||
#chop($curdir);
|
||||
#$ENV{"CVS_PASSFILE"} = "$curdir/.cvspass";
|
||||
|
||||
$ENV{"CVS_PASSFILE"} = "/usr/local/etc/despot-cvspass";
|
||||
|
||||
$dontcommit = 0;
|
||||
$usertoblame = "";
|
||||
|
||||
|
@ -70,10 +76,6 @@ if (open(HOST, "/bin/hostname|")) {
|
|||
|
||||
$ENV{"HOME"} = glob("~$mylogin"); # CVS wants this.
|
||||
|
||||
$curdir = `pwd`;
|
||||
chop($curdir);
|
||||
$ENV{"CVS_PASSFILE"} = "$curdir/.cvspass";
|
||||
|
||||
if ($usertoblame eq "") {
|
||||
$usertoblame = $mylogin;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче