pgsql: Be more wary of unwanted whitespace in pgstat_reset_remove_files - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Be more wary of unwanted whitespace in pgstat_reset_remove_files
Date
Msg-id E1VBYzd-0008Hn-2r@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Be more wary of unwanted whitespace in pgstat_reset_remove_files().

sscanf isn't the easiest thing to use for exact pattern checks ...
also, don't use strncmp where strcmp will do.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/59bc4a43ec588d25fe976774bd1194f1b90251fa

Modified Files
--------------
src/backend/postmaster/pgstat.c |   30 ++++++++++++++----------------
1 file changed, 14 insertions(+), 16 deletions(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Fix removal of files in pgstats directories
Next
From: Tom Lane
Date:
Subject: pgsql: Be more wary of unwanted whitespace in pgstat_reset_remove_files