Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f1f1bf

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 parentbff074b commit7f1f1bf

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)

[8]ページ先頭

©2009-2025 Movatter.jp