[scponly] how do I use rsync with scponly ?
Kaleb Pederson
kpederson at mail.ewu.edu
Tue Mar 21 12:08:52 EST 2006
Per 'man 3 getopt':
The getopt_long() function works like getopt() except that it also accepts
long options, started out by two dashes. (If the program accepts only long
options, then optstring should be specified as an empty string (""), not
NULL.) Long option names may be abbreviated if the abbreviation is unique or
is an exact match for some defined option. A long option may take a
parameter, of the form --arg=param or --arg param.
And... the call in scponly is:
while ((ch = getopt(ac, av, cmdarg->opts)) != -1) {...}
You can probably change getopt to getopt_long and it should work for you.
In terms of an official patch, I think we also need to change the function
testing in configure.in to include getopt_long. I'm not sure how to handle
it if getopt_long doesn't exist on certain systems. Perhaps only use
getopt_long until we run into a case where a system doesn't have it.
Let me know if that works.
Thanks.
--Kaleb
On Tuesday 21 March 2006 8:39 am, you wrote:
> On Tue, 21 Mar 2006, Kaleb Pederson wrote:
> > This is actually a bug in the getopt processing. I'm not sure if it's
> > related to the way it's being setup or if it is happening at the library
> > level.
> >
> > --server is being picked up as -s -e rver (hence the 'arg was rver' in
> > the log).
> >
> > I'm not sure about an immediate fix. I'll try to find out more.
>
> Understood. This is bad news - I have been building up to this
> functionality with my user population, and sent out instructions on doing
> this, etc., and it turns out it doesn't function at all.
>
> Thank you so much for your help, and shame on me for not testing to see
> that rsync actually worked in 4.6. Could this possible be a simple patch
> to 4.6 to fix ?
>
> Also, does this mean that all server apps (not just rsync) that invoke
> themselves with an argument that contains an 'e' are broken ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : https://lists.ccs.neu.edu/pipermail/scponly/attachments/20060321/de700bac/attachment.bin
More information about the scponly
mailing list