[Patch] rsync-2.6.2: Allow 'port = N' in rsyncd.conf

Demian M. Nave dnave at psc.edu
Tue Sep 28 19:41:50 GMT 2004

Hi Wayne,
Thanks for fixing the patch!  I'll upgrade to the CVS source.


[04-09-28 at 12:01pm] Wayne Davison said (Re: Re: [Patch] rsync-2.6.2: Allow...:

> On Tue, Sep 28, 2004 at 01:59:45PM -0400, Demian M. Nave wrote:
> > If anyone is interested, the included patch to rsync-2.6.2 allows you to 
> > specify the port number for an rsync server as a global option in 
> > rsyncd.conf with 'port = <N>' (where <N> is your favorite port number).
> I like this idea, so I added a diff to the patches dir that implements
> this.  Your patch didn't check the config file in the right place (i.e.
> it would have caused rsync to refuse to run in a non-daemon mode if the
> rsyncd.conf file was not present), so I fixed that.  I also made the
> command-line --port option supersede this value (which is a better idiom
> to me -- if the user specifies something on the command-line, it should
> take precedence over a default value from the config file).
> You can see my version of your patch here:
> http://rsync.samba.org/ftp/unpacked/rsync/patches/param-port.diff
> It applies to the latest CVS source.  Thanks for the patch!
> ..wayne..

 Demian M. Nave | dnave at psc.edu | www.psc.edu/~dnave | Ph 412 268-4574
 Pgh. Supercomputing Ctr.  | 4400 Fifth Avenue | Pittsburgh, PA 15213
 | "Our scientific powers have outrun our spiritual powers; we have guided
 | missles and mis-guided men."  - Martin Luther King

More information about the rsync mailing list