Use fsx package and friends from pkglib
This commit is contained in:
parent
1f8c55da7c
commit
0f6803f890
35 changed files with 91 additions and 493 deletions
|
|
@ -12,8 +12,8 @@ import (
|
|||
"io/fs"
|
||||
"os"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/fsx"
|
||||
"github.com/gliderlabs/ssh"
|
||||
"github.com/tkw1536/pkglib/fsx/umaskfree"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
gossh "golang.org/x/crypto/ssh"
|
||||
|
|
@ -120,7 +120,7 @@ func (ssh2 *SSH2) makeHostKey(progress io.Writer, ctx context.Context, key HostK
|
|||
}
|
||||
|
||||
// generate and write private key as PEM
|
||||
privateKeyFile, err := fsx.Create(path, fsx.DefaultFilePerm)
|
||||
privateKeyFile, err := umaskfree.Create(path, umaskfree.DefaultFilePerm)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue