Please raise a JIRA issue.

I was about to fix that a few minutes ago but then there's something I
don't get.
If file.isWriteable() is supposed to return false, then the call to
truncate should also be rejected by the OS, right ?
So in this use case, there's something I don't understand ... Thoughts ?


2014-09-26 12:19 GMT+02:00 Stefan Mueller <[email protected]>:

> Guillaume Nodet-3 wrote
> > The empty file must be caused by the truncate flag on the SSH_FXP_OPEN
> > command.
> > It looks like the flags passed are SSH_FXF_CREAT | SSH_FXF_TRUNC.
> > I think you're right that if the user does not have write permission on
> > the
> > file, the truncate will still be done, so that's definitely a bug.  If
> you
> > could raise a JIRA, i'll try to fix that.
>
> I am back to FTP/SFTP now. Sorry, that I switched so fast to another
> project. Did you look at this or should I raise a JIRA?
>
>
>
> --
> View this message in context:
> http://apache-mina.10907.n7.nabble.com/SSHD-Problems-with-SFTP-tp42625p44094.html
> Sent from the Apache MINA User Forum mailing list archive at Nabble.com.
>

Reply via email to