mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 779057 - DirInstallLocation._readAddons() deletes stale pointer files unsafely, r=unfocused
This commit is contained in:
parent
fa0b314529
commit
7f1134962e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user