projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff074b
)
Remove redundant port number check
author
Peter Eisentraut
<peter_e@gmx.net>
Wed, 4 May 2011 18:02:02 +0000
(21:02 +0300)
committer
Peter Eisentraut
<peter_e@gmx.net>
Wed, 4 May 2011 18:02:02 +0000
(21:02 +0300)
pg_basebackup doesn't need to police the format of port numbers.
libpq already does that.
src/bin/pg_basebackup/pg_basebackup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_basebackup/pg_basebackup.c
b/src/bin/pg_basebackup/pg_basebackup.c
index b689abb116e0b57afe011ecc00ac5cc4a88af2d2..3feb3ee5484f10cd09ec4265e4e3b11ab81c06eb 100644
(file)
--- 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':