pgsql: Focus on ftello result < 0 instead of errno

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Focus on ftello result < 0 instead of errno
Date: 2014-02-09 18:31:20
Message-ID: E1WCZA0-0005LT-32@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Focus on ftello result < 0 instead of errno

Rather than reset errno (or just hope that its cleared already),
check just the result of the ftello for < 0 to determine if there
was an issue.

Oversight by me, pointed out by Tom.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5e8e794e3be9fbeddf6f2e2c0515dd0f04c784ec

Modified Files
--------------
src/bin/pg_dump/pg_backup_custom.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2014-02-09 18:35:46 Re: pgsql: Minor pg_dump improvements
Previous Message Tom Lane 2014-02-09 18:03:52 Re: pgsql: Minor pg_dump improvements