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
1 changed files with 0 additions and 6 deletions

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