Bug 779057 - DirInstallLocation._readAddons() deletes stale pointer files unsafely, r=unfocused

This commit is contained in:
Mark Capella 2012-08-07 06:57:00 +12:00
parent fa0b314529
commit 7f1134962e

View File

@ -6302,7 +6302,13 @@ DirectoryInstallLocation.prototype = {
let newEntry = this._readDirectoryFromFile(entry);
if (!newEntry) {
LOG("Deleting stale pointer file " + entry.path);
entry.remove(true);
try {
entry.remove(true);
}
catch (e) {
WARN("Failed to remove stale pointer file " + entry.path, e);
// Failing to remove the stale pointer file is ignorable
}
continue;
}