| Index: chrome/browser/process_singleton_posix.cc
|
| diff --git a/chrome/browser/process_singleton_posix.cc b/chrome/browser/process_singleton_posix.cc
|
| index d5394b857a367f8806f408c9d527cc7f5b53d96e..4476834c8dad89f3e5ef335b0cf9af109a36222d 100644
|
| --- a/chrome/browser/process_singleton_posix.cc
|
| +++ b/chrome/browser/process_singleton_posix.cc
|
| @@ -279,6 +279,12 @@ bool SymlinkPath(const base::FilePath& target, const base::FilePath& path) {
|
| bool ParseLockPath(const base::FilePath& path,
|
| std::string* hostname,
|
| int* pid) {
|
| + // The lock file should be a symlink, not a regular file or a directory.
|
| + if (base::PathExists(path) && !base::IsLink(path)) {
|
| + base::DeleteFile(path, true);
|
| + return false;
|
| + }
|
| +
|
| std::string real_path = ReadLink(path).value();
|
| if (real_path.empty())
|
| return false;
|
|
|