зеркало из https://github.com/mozilla/pjs.git
Bug 300379: GenerateVersionTable's rename may fail silently - Patch by byron jones (glob) <bugzilla@glob.com.au> r=LpSolit a=justdave
This commit is contained in:
Родитель
0b00c3b853
Коммит
fc470ad613
|
@ -310,7 +310,8 @@ sub GenerateVersionTable {
|
|||
print $fh "1;\n";
|
||||
close $fh;
|
||||
|
||||
rename $tmpname, "$datadir/versioncache" || die "Can't rename $tmpname to versioncache";
|
||||
rename ($tmpname, "$datadir/versioncache")
|
||||
|| die "Can't rename $tmpname to versioncache";
|
||||
ChmodDataFile("$datadir/versioncache", 0666);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче