From 7f1f1bfdbb199a003b9bef5dc946eb2c1c38e4c2 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 4 May 2011 21:02:02 +0300 Subject: [PATCH] Remove redundant port number check pg_basebackup doesn't need to police the format of port numbers. libpq already does that. --- src/bin/pg_basebackup/pg_basebackup.c | 6 ------ 1 file changed, 6 deletions(-) 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': -- 2.40.0