Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keydata_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
}

func (w *FileKeyDataWriter) Commit() error {
f, err := osutil.NewAtomicFile(w.path, 0600, 0, sys.UserID(osutil.NoChown), sys.GroupID(osutil.NoChown))
f, err := osutil.NewAtomicFile(w.path, 0600, sys.UserID(osutil.NoChown), sys.GroupID(osutil.NoChown))

Check failure on line 72 in keydata_file.go

View workflow job for this annotation

GitHub Actions / tests (1.23)

not enough arguments in call to osutil.NewAtomicFile

Check failure on line 72 in keydata_file.go

View workflow job for this annotation

GitHub Actions / tests (1.18)

not enough arguments in call to osutil.NewAtomicFile
if err != nil {
return xerrors.Errorf("cannot create new atomic file: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion tpm2/keydata_legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ type FileSealedKeyObjectWriter struct {
}

func (w *FileSealedKeyObjectWriter) Commit() (err error) {
f, err := osutil.NewAtomicFile(w.path, 0600, 0, sys.UserID(osutil.NoChown), sys.GroupID(osutil.NoChown))
f, err := osutil.NewAtomicFile(w.path, 0600, sys.UserID(osutil.NoChown), sys.GroupID(osutil.NoChown))
if err != nil {
return err
}
Expand Down
Loading