Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow "port" to be specified in the rsyncd.conf file.
[rsync/rsync.git]
/
clientserver.c
diff --git
a/clientserver.c
b/clientserver.c
index
339c15d
..
0cb548f
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-598,6
+598,9
@@
int daemon_main(void)
if (!lp_load(config_file, 1))
exit_cleanup(RERR_SYNTAX);
+ if (rsync_port == 0 && (rsync_port = lp_rsync_port()) == 0)
+ rsync_port = RSYNC_PORT;
+
log_init();
rprintf(FLOG, "rsyncd version %s starting, listening on port %d\n",