summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-12 15:17:36 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-12 16:44:38 (GMT)
commita33b81305889e45823b36b3c96cc8db97e5d3b41 (patch)
tree13afcc326ecd8a3399da63b2e3fd31286b204cd4 /src
parentb0662970ba2cc69a64d7d2ebe3e07dcef948dabe (diff)
downloadNinja-a33b81305889e45823b36b3c96cc8db97e5d3b41.zip
Ninja-a33b81305889e45823b36b3c96cc8db97e5d3b41.tar.gz
Ninja-a33b81305889e45823b36b3c96cc8db97e5d3b41.tar.bz2
disk_interface: Improve wrapping of comment in RemoveFile
Diffstat (limited to 'src')
-rw-r--r--src/disk_interface.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc
index 8d4cc7f..4753201 100644
--- a/src/disk_interface.cc
+++ b/src/disk_interface.cc
@@ -272,9 +272,9 @@ int RealDiskInterface::RemoveFile(const string& path) {
return 1;
}
if (attributes & FILE_ATTRIBUTE_READONLY) {
- // On non-Windows systems remove will happily delete read-only files. On
- // Windows Ninja should behave the same. See
- // https://github.com/ninja-build/ninja/issues/1886
+ // On non-Windows systems, remove() will happily delete read-only files.
+ // On Windows Ninja should behave the same:
+ // https://github.com/ninja-build/ninja/issues/1886
SetFileAttributes(path.c_str(), attributes & ~FILE_ATTRIBUTE_READONLY);
}
if (!DeleteFile(path.c_str())) {