mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Update out of date comment
PiperOrigin-RevId: 248265524 Change-Id: Ib9082f08d24ba10535079cf89c714fb22a4fdf10
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user