Index: base/test_file_util_posix.cc |
=================================================================== |
--- base/test_file_util_posix.cc (revision 11103) |
+++ base/test_file_util_posix.cc (working copy) |
@@ -44,14 +44,13 @@ |
std::string suffix(&ent->fts_path[from_path.value().size()]); |
// Strip the leading '/' (if any). |
if (!suffix.empty()) { |
- DCHECK_EQ('/', suffix[0]); |
+ DCHECK(suffix[0] == '/'); |
suffix.erase(0, 1); |
} |
const FilePath target_path = to_path.Append(suffix); |
switch (ent->fts_info) { |
case FTS_D: // Preorder directory. |
// Try creating the target dir, continuing on it if it exists already. |
- // Rely on the user's umask to produce correct permissions. |
if (mkdir(target_path.value().c_str(), 0777) != 0) { |
if (errno != EEXIST) |
error = errno; |
@@ -88,10 +87,10 @@ |
break; |
case FTS_SL: // Symlink. |
case FTS_SLNONE: // Symlink with broken target. |
- LOG(WARNING) << "skipping symbolic link: " << ent->fts_path; |
+ LOG(WARNING) << "skipping symbolic link."; |
continue; |
case FTS_DEFAULT: // Some other sort of file. |
- LOG(WARNING) << "skipping file of unknown type: " << ent->fts_path; |
+ LOG(WARNING) << "skipping weird file."; |
continue; |
default: |
NOTREACHED(); |