mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
ssh commands: fix for rsync with no arguments
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -2278,8 +2278,8 @@ func TestRsyncArguments(t *testing.T) {
|
||||
assert.False(t, canAcceptRsyncArgs(args))
|
||||
args = []string{"--server", "--sender", "-vlogDtpre.", "--delete", ".", "/"}
|
||||
assert.False(t, canAcceptRsyncArgs(args))
|
||||
args = []string{"--server", "--sender", "-e.iLsfxCIvu", "--delete", ".", "/"}
|
||||
assert.False(t, canAcceptRsyncArgs(args))
|
||||
args = []string{"--server", "--sender", "-e.iLsfxCIvu", ".", "/"}
|
||||
assert.True(t, canAcceptRsyncArgs(args))
|
||||
args = []string{"--server", "-vlogDtpre.iLsfxCIvu", "--delete", "/"}
|
||||
assert.False(t, canAcceptRsyncArgs(args))
|
||||
args = []string{"--server", "-vlogDtpre.iLsfxCIvu", "--delete", "--safe-links"}
|
||||
|
||||
Reference in New Issue
Block a user