Re: [PATCH] Fix missing argument handling in psql getopt
Quentin Rameau <quinq@fifth.space>
From: Quentin Rameau <quinq@fifth.space>
To: pgsql-hackers@lists.postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2019-08-25T19:21:36Z
Lists: pgsql-hackers
Attachments
- 0001-Fix-handling-of-option.patch (text/x-patch)
> Another better way, I think, to fix this is to check for optopt > instead, which would be set to the option which caused the error, which > if empty means there isn't an error. > > Patch attached. Actually OpenBSD seems to set optopt to '?' by default, so the updated attached patch ensure we start with an empty optopt.
Commits
-
Avoid platform-specific null pointer dereference in psql.
- fb55e95396ca 10.11 landed
- c693c5c4904d 9.4.25 landed
- 65b1cad5a092 9.5.20 landed
- 6338fa3e715a 13.0 landed
- 5fc7b1e939c4 11.6 landed
- 363382521eb2 12.0 landed
- 28d2ce3c7c99 9.6.16 landed