mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Remove redundant port number check
pg_basebackup doesn't need to police the format of port numbers. libpq already does that.
This commit is contained in:
parent
bff074b1ab
commit
7f1f1bfdbb
@ -1003,12 +1003,6 @@ main(int argc, char **argv)
|
|||||||
dbhost = xstrdup(optarg);
|
dbhost = xstrdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
if (atoi(optarg) <= 0)
|
|
||||||
{
|
|
||||||
fprintf(stderr, _("%s: invalid port number \"%s\"\n"),
|
|
||||||
progname, optarg);
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
dbport = xstrdup(optarg);
|
dbport = xstrdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'U':
|
case 'U':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user