| Index: utils.cc
|
| diff --git a/utils.cc b/utils.cc
|
| index 162fe7b8d9ea51c59c19491beee4a861707bd080..359b6b8866a6fee79b5f242f91d4ea4720ce2d17 100644
|
| --- a/utils.cc
|
| +++ b/utils.cc
|
| @@ -301,6 +301,11 @@ bool FileExists(const char* path) {
|
| return 0 == lstat(path, &stbuf);
|
| }
|
|
|
| +bool IsSymlink(const char* path) {
|
| + struct stat stbuf;
|
| + return lstat(path, &stbuf) == 0 && S_ISLNK(stbuf.st_mode) != 0;
|
| +}
|
| +
|
| std::string TempFilename(string path) {
|
| static const string suffix("XXXXXX");
|
| CHECK(StringHasSuffix(path, suffix));
|
|
|