mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +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);
|
||||
break;
|
||||
case 'p':
|
||||
if (atoi(optarg) <= 0)
|
||||
{
|
||||
fprintf(stderr, _("%s: invalid port number \"%s\"\n"),
|
||||
progname, optarg);
|
||||
exit(1);
|
||||
}
|
||||
dbport = xstrdup(optarg);
|
||||
break;
|
||||
case 'U':
|
||||
|
Loading…
x
Reference in New Issue
Block a user