Adding arguments to the options

Wayne Davison wayned at samba.org
Thu Jun 6 00:22:05 MDT 2013


On Mon, Jun 3, 2013 at 10:33 AM, Ajay Tanpure <ajaytanpure92 at gmail.com>wrote:

> {"https", 'N', POPT_ARG_VAL, &https_port_s, 0, 0, 0}}
>
>
You can find popt documentation here:

http://linux.die.net/man/3/popt

As that page indicates, POPT_ARG_VAL sets an int var-ptr to an int value
supplied in your structure (which is 0 above).  You probably want
POPT_ARG_INT.

 How should the option arguments be passed?
>

You'll find a bunch of arg-passing code lower down in options.c where it
pushes strings onto an arg array for the remote server.

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20130605/9f931b0f/attachment.html>


More information about the rsync mailing list