[ 
https://issues.apache.org/jira/browse/SSHD-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14117975#comment-14117975
 ] 

Guillaume Nodet commented on SSHD-344:
--------------------------------------

Do you have a code snippet you use on the client side ?
There's no copy in sftp, so I need to know how you do it.

> File and Posix attributes always seems to be default settings
> -------------------------------------------------------------
>
>                 Key: SSHD-344
>                 URL: https://issues.apache.org/jira/browse/SSHD-344
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>         Environment: Tested against OpenSSH on Linux and Cygwin on Windows
>            Reporter: Jonathan Chien
>
> When using ChannelExec to do a "cp -p" or a "mv", the Posix permissions of 
> the destination file always appear to be 644 instead of whatever the Posix 
> permissions of the parent file were.
> When using DefaultSftpClient.setstat, it also doesn't appear to change 
> neither any BasicFileAttributes (such as last modified time) nor Posix 
> permissions, and just doesn't seem to work at all.
> As such, there's no good way to change the attributes of files right now.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to