[PATCH] D48250: [sanitizer_common] Use O_TRUNC for WrOnly access mode.

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 15 20:01:53 PDT 2018


vitalybuka added a subscriber: krytarowski.
vitalybuka added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_solaris.cc:81
   return internal_open(filename,
-      write ? O_WRONLY | O_CREAT : O_RDONLY, 0660);
+      write ? O_WRONLY | O_CREAT | O_TRUNC : O_RDONLY, 0660);
 }
----------------
This function has different signature.

@krytarowski I don't see any calls to this function. Is this here accidentally?


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D48250





More information about the llvm-commits mailing list