[scponly] long_getopt
Daniel Webb
lists at danielwebb.us
Fri Jan 20 17:21:15 EST 2006
Chris Fench wrote:
>I found a solution, by using getopt_long instead of getopt. I don't know
>if this is available on all system. In order to use, you simply have to
>replace the "while ((ch = getopt ..." call in helper.c with:
>
>struct option long_opt[] = {
> {0, 0, 0, 0}
>};
>
>while ((ch = getopt_long(ac, av, cmdarg->opts, long_opt, NULL)) != -1)
Does this still keep the --rsh option from being used with rsync?
More information about the scponly
mailing list