[
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: [email protected]
For additional commands, e-mail: [email protected]