forked from TrueCloudLab/restic
Remove stale comments from backend/sftp
The preExec and postExec functions were removed in
0bdb131521
from 2018.
This commit is contained in:
parent
4ffd479ba4
commit
23ebec717c
1 changed files with 2 additions and 4 deletions
|
@ -116,8 +116,7 @@ func (r *SFTP) clientError() error {
|
|||
}
|
||||
|
||||
// Open opens an sftp backend as described by the config by running
|
||||
// "ssh" with the appropriate arguments (or cfg.Command, if set). The function
|
||||
// preExec is run just before, postExec just after starting a program.
|
||||
// "ssh" with the appropriate arguments (or cfg.Command, if set).
|
||||
func Open(ctx context.Context, cfg Config) (*SFTP, error) {
|
||||
debug.Log("open backend with config %#v", cfg)
|
||||
|
||||
|
@ -214,8 +213,7 @@ func buildSSHCommand(cfg Config) (cmd string, args []string, err error) {
|
|||
}
|
||||
|
||||
// Create creates an sftp backend as described by the config by running "ssh"
|
||||
// with the appropriate arguments (or cfg.Command, if set). The function
|
||||
// preExec is run just before, postExec just after starting a program.
|
||||
// with the appropriate arguments (or cfg.Command, if set).
|
||||
func Create(ctx context.Context, cfg Config) (*SFTP, error) {
|
||||
cmd, args, err := buildSSHCommand(cfg)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue