mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
update pkg/sftp to the latest master
Our pull request to handle transfer errors is now merged, so updating pkg/sftp should fix #36
This commit is contained in:
@@ -325,7 +325,7 @@ func TestDirCommands(t *testing.T) {
|
||||
os.RemoveAll(user.GetHomeDir())
|
||||
}
|
||||
|
||||
func TestSymlink(t *testing.T) {
|
||||
func TestLink(t *testing.T) {
|
||||
usePubKey := false
|
||||
user, _, err := api.AddUser(getTestUser(usePubKey), http.StatusOK)
|
||||
if err != nil {
|
||||
@@ -359,6 +359,10 @@ func TestSymlink(t *testing.T) {
|
||||
if err == nil {
|
||||
t.Errorf("creating a symlink to an existing one must fail")
|
||||
}
|
||||
err = client.Link(testFileName, testFileName+".hlink")
|
||||
if err == nil {
|
||||
t.Errorf("hard link is not supported and must fail")
|
||||
}
|
||||
err = client.Remove(testFileName + ".link")
|
||||
if err != nil {
|
||||
t.Errorf("error removing symlink: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user