[PATCH] readlink missing nul-termination in pg_rewind - Mailing list pgsql-hackers

From Abhijit Menon-Sen
Subject [PATCH] readlink missing nul-termination in pg_rewind
Date
Msg-id 20150528154348.GA22156@toroid.org
Whole thread Raw
Responses Re: [PATCH] readlink missing nul-termination in pg_rewind  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [PATCH] readlink missing nul-termination in pg_rewind  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
This is just something I noticed in passing. (I did a quick check of all
the other uses of readlink in the source, and they do get this right.)

-- Abhijit

P.S. Also in passing, I note that pg_rewind will follow links under any
directory anywhere named pg_tblspc (which probably doesn't matter), and
does not follow pg_xlog if it's a symlink (which probably does). If you
want, I can submit a trivial patch for the latter.

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP: Enhanced ALTER OPERATOR
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] readlink missing nul-termination in pg_rewind