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
Date: 2019-08-25T16:01:25Z
Lists: pgsql-hackers
> > Um ... so how would control get there with optind too large? Sorry, I missed the simple explanation for that: As option 'h' is missing an argument, getopt(_long) returns the character '?' which is switched on through variable c, and the program jumps to the '?' case handling.
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