From d0d8a1999f9b56aa030f10b40fe9b767280778af Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Wed, 20 Nov 2024 18:28:15 +0100 Subject: [PATCH] sftpd: remove allocator Signed-off-by: Nicola Murino --- internal/sftpd/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/sftpd/server.go b/internal/sftpd/server.go index 5370bbb6..e201d566 100644 --- a/internal/sftpd/server.go +++ b/internal/sftpd/server.go @@ -694,7 +694,7 @@ func (c *Configuration) handleSftpConnection(channel ssh.Channel, connection *Co defer common.Connections.Remove(connection.GetID()) // Create the server instance for the channel using the handler we created above. - server := sftp.NewRequestServer(channel, c.createHandlers(connection), sftp.WithRSAllocator(), + server := sftp.NewRequestServer(channel, c.createHandlers(connection), sftp.WithStartDirectory(connection.User.Filters.StartDirectory)) defer server.Close()