#650982 openssh-server: sftp server should not seek just after opening a file

Package:
openssh-server
Source:
openssh
Description:
secure shell (SSH) server, for secure access from remote machines
Submitter:
Corin Langosch
Date:
2011-12-04 19:51:08 UTC
Severity:
important
#650982#5
Date:
2011-12-04 19:49:41 UTC
From:
To:
It seems that the sftp server does a seek just after opening a file. This results in a seek error when trying to access files which are not seekable (like /proc entries).

A suggested fix: if llseek fails (for SET, 0), just close/reopen the file instead. Or if there was an open right before, just ignore the failing seek.