1
0
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:
Peter Eisentraut 2011-05-04 21:02:02 +03:00
parent bff074b1ab
commit 7f1f1bfdbb

View File

@ -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':