You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Thomas Wolf (Jira)" <ji...@apache.org> on 2023/04/17 19:05:00 UTC
[jira] [Commented] (SSHD-1322) How to identify received LSTAT command is part of PUT command at Server
[ https://issues.apache.org/jira/browse/SSHD-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17713257#comment-17713257 ]
Thomas Wolf commented on SSHD-1322:
-----------------------------------
I don't think you can.
The LSTAT comes from OpenSSH querying [whether <remote file> is a directory|https://github.com/openssh/openssh-portable/blob/ac383f3a5/sftp.c#L747].
> How to identify received LSTAT command is part of PUT command at Server
> ------------------------------------------------------------------------
>
> Key: SSHD-1322
> URL: https://issues.apache.org/jira/browse/SSHD-1322
> Project: MINA SSHD
> Issue Type: Question
> Reporter: Sreedhar J
> Priority: Major
>
> From SFTP client, when I execute PUT <local file> <remote file> , SFTP Server recieves first LS command SSH_FXP_LSTAT followed by PUT commands ( SSH_FXP_OPEN, SSH_FXP_WRITE ).
> where as if we issue PUT < local file>, Server would get the commands as SSH_FXP_OPEN, SSH_FXP_WRITE
> *So, my question is, at Server level LSTAT command was invoked as part of embeeded PUT command vs normal LSTAT command from sftp client.*
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org