hierynomus/sshj

RemoteFileInputStream#skip returns wrong value

lexx911 opened this issue · 2 comments

net.schmizz.sshj.sftp.RemoteFile.RemoteFileInputStream.skip(long n) returns the new file pointer position but InputStream.skip() should return the actual number of bytes skipped instead.

Some stream implementations like Apache Compress GzipInputStream check the return value and throw an IOException if used on an RemoteFileInputStream.

Attempted fix in #210.

#210 is merged, so closing this issue.