symlite: Use pread rather than lseek save/restore
authorJosh Stone <jistone@redhat.com>
Thu, 21 Nov 2013 23:34:44 +0000 (15:34 -0800)
committerJosh Stone <jistone@redhat.com>
Sat, 14 Dec 2013 02:07:47 +0000 (18:07 -0800)
commit31c717fbd9ead817a99a9307c4b77ad4dc03c444
tree5a79f3040627f7931950921e92ae2f1f4d2432d1
parent52f0ce11c36566b51f0643884b8ee6375a907e3f
symlite: Use pread rather than lseek save/restore

In SymLite::getInterpreterName, it was doing a SEEK_CUR, SEEK_SET,
read(), then SEEK_SET back to the original offset.  This can all be
replaced by using pread() to read from any offset without affecting the
actual file offset.

The former lseeks triggered Coverity CHECKED_RETURN & NEGATIVE_RETURNS.
symlite/src/SymLite-elf.C