Commit 7f1f1bfd authored by Peter Eisentraut's avatar Peter Eisentraut

Remove redundant port number check

pg_basebackup doesn't need to police the format of port numbers.
libpq already does that.
parent bff074b1
......@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment