From: Peter Eisentraut Date: Wed, 4 May 2011 18:02:02 +0000 (+0300) Subject: Remove redundant port number check X-Git-Tag: REL9_1_BETA2~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f1f1bfdbb199a003b9bef5dc946eb2c1c38e4c2;p=postgresql Remove redundant port number check pg_basebackup doesn't need to police the format of port numbers. libpq already does that. --- diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index b689abb116..3feb3ee548 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -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':