pgsql: Be more wary of unwanted whitespace in pgstat_reset_remove_files

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Be more wary of unwanted whitespace in pgstat_reset_remove_files
Date: 2013-08-19 23:36:13
Message-ID: E1VBYzd-0008Hn-2r@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-08-19 23:45:51 pgsql: Stamp 9.3rc1.
Previous Message Alvaro Herrera 2013-08-19 21:56:09 pgsql: Fix removal of files in pgstats directories