Home
last modified time | relevance | path

Searched refs:symlink_path (Results 1 – 1 of 1) sorted by relevance

/system/update_engine/
Dmain.cc41 void SetupLogSymlink(const string& symlink_path, const string& log_path) { in SetupLogSymlink() argument
46 if (utils::FileExists(symlink_path.c_str()) && in SetupLogSymlink()
47 !utils::IsSymlink(symlink_path.c_str())) { in SetupLogSymlink()
48 base::ReplaceFile(base::FilePath(symlink_path), in SetupLogSymlink()
52 base::DeleteFile(base::FilePath(symlink_path), true); in SetupLogSymlink()
53 if (symlink(log_path.c_str(), symlink_path.c_str()) == -1) { in SetupLogSymlink()
54 PLOG(ERROR) << "Unable to create symlink " << symlink_path in SetupLogSymlink()