[
https://issues.apache.org/jira/browse/SSHD-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Goldstein Lyor updated SSHD-410:
--------------------------------
Attachment: 0018-SSHD-410-Do-not-seek-SshFile-s-input-output-streams-.patch
Attached recommended patch (see _NativeSshFileNio#createOutputStream_ it
already has this logic in it, so why not do it for _NativeSshFile_ as well)
> Do not seek SshFile(s) input/output streams if requested offset is zero
> -----------------------------------------------------------------------
>
> Key: SSHD-410
> URL: https://issues.apache.org/jira/browse/SSHD-410
> Project: MINA SSHD
> Issue Type: Improvement
> Affects Versions: 0.14.0
> Reporter: Goldstein Lyor
> Priority: Minor
> Attachments:
> 0018-SSHD-410-Do-not-seek-SshFile-s-input-output-streams-.patch
>
>
> Move to the appropriate offset only if non-zero. The reason for this check is
> that special "files" (e.g., _/proc_ or _/dev_ ones) might not support _seek_
> to a specific position but rather only sequential read/write. If this is what
> is requested, there is no reason to risk incurring an _IOException_
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)