mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-03-17 20:58:34 +02:00
Coverity pointed out that -1 could be passed to lseek() (added in a79034ae) after a file failed to open because it is missing. Overall it seems simpler to enclose the success code in an else block to prevent any repeats of this mistake in the future. This was not an active bug because there are currently no cases where we do read offsets in a file that is allowed to be missing. Also remove the result flag since it is easier to just check that the file descriptor is valid.