Update out of date comment

PiperOrigin-RevId: 248265524
Change-Id: Ib9082f08d24ba10535079cf89c714fb22a4fdf10
This commit is contained in:
Michael Pratt
2019-05-14 20:58:53 -07:00
committed by Shentubot
parent dd153c014d
commit dc4a042f3a
+1 -1
View File
@@ -85,7 +85,7 @@ PosixErrorOr<TempPath> TempPath::CreateFileWith(absl::string_view const parent,
absl::string_view const content,
mode_t const mode) {
return CreateIn(parent, [=](absl::string_view path) -> PosixError {
// SetContents will call open(O_WRONLY) with the given mode. If the
// CreateWithContents will call open(O_WRONLY) with the given mode. If the
// mode is not user-writable, save/restore cannot preserve the fd. Hence
// the little permission dance that's done here.
auto res = CreateWithContents(path, content, mode | 0200);