[scponly] how do I use rsync with scponly ?
Kaleb Pederson
kpederson at mail.ewu.edu
Tue Mar 21 12:38:44 EST 2006
Ughh... just taking a better look. That's not going to work without some
other changes. The function declarations are different:
int getopt(int argc, char * const argv[],
const char *optstring);
int getopt_long_only(int argc, char * const argv[],
const char *optstring,
const struct option *longopts, int *longindex);
I can't fix it right now, so hopefully someone can get to it before I can.
Thanks.
--Kaleb
On Tuesday 21 March 2006 9:16 am, Ensel Sharon wrote:
> On Tue, 21 Mar 2006, Kaleb Pederson wrote:
> > 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) {...}
>
> Ok, I see this line in helper.c
>
> So this is the _only_ line I need to change getopt to getopt_long, or do I
> need to change it in other places in this file ?
>
> Thanks.
-------------- 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/8e0fcb54/attachment.bin
More information about the scponly
mailing list