pgsql: Fix a couple of places that would loop forever if attempts to - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix a couple of places that would loop forever if attempts to
Date
Msg-id 20100303203129.3468C7541D0@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix a couple of places that would loop forever if attempts to read a stdio file
set ferror() but never set feof().  This is known to be the case for recent
glibc when trying to read a directory as a file, and might be true for other
platforms/cases too.  Per report from Ed L.  (There is more that we ought to
do about his report, but this is one easily identifiable issue.)

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/libpq:
        hba.c (r1.157 -> r1.157.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/libpq/hba.c?r1=1.157&r2=1.157.2.1)
    pgsql/src/interfaces/libpq:
        fe-connect.c (r1.339.2.3 -> r1.339.2.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-connect.c?r1=1.339.2.3&r2=1.339.2.4)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix a couple of places that would loop forever if attempts to
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix a couple of places that would loop forever if attempts to