Skip to content

Commit 7f1f1bf

Browse files
committed
Remove redundant port number check
pg_basebackup doesn't need to police the format of port numbers. libpq already does that.
1 parent bff074b commit 7f1f1bf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,12 +1003,6 @@ main(int argc, char **argv)
10031003
dbhost = xstrdup(optarg);
10041004
break;
10051005
case 'p':
1006-
if (atoi(optarg) <= 0)
1007-
{
1008-
fprintf(stderr, _("%s: invalid port number \"%s\"\n"),
1009-
progname, optarg);
1010-
exit(1);
1011-
}
10121006
dbport = xstrdup(optarg);
10131007
break;
10141008
case 'U':

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy