[scponly] how do I use rsync with scponly ? (patch later today) (more)

John Kozubik john at kozubik.com
Wed Mar 22 19:48:08 EST 2006


The patch I posted yesterday was, admittedly, a terrible hack.  It does,
however, work ... in the sense that, at the very least, rsync can now be
used with scponly, but not, unfortunately, with full functionality.

To those that had problems with the patch, I believe I made a cut/paste
error.  I am indeed using 4.6 sources, and it does work.

The problem is that --server is not the only option that chokes on the
"-e" restrictions.  --delete, --sender, etc. all fail on that test, so
although you can indeed perform rsyncs, you cannot, for instance perform
--deletes.  Further, if you add another block of code to helper.c to
except each of them, they fail because they are not necessarily the first
option.

So, I am going to do two things:

1. request that someone (Kaleb ?) quickly look through all the options
that rsync has, and decide which ones will fail on a false -e test, and of
those, which are necessary.  --delete (and all of the --del/--delete
options), --sender, etc.  I just want a rough consensus as to what is
needed.

2. I am going to have the patch rewritten so that it does not just allow
an exception if --argument is the first argument, but rather, if it is
specified anywhere as an argument.

When both of the above are done, then you can just paste that short block
of code into helper.c once for every option you want to except.

Again, all of this is a terrible hack, but it assumes that nobody is going
to fix the underlying getopt problems anytime soon, and I would like to
see this working today or tomorrow.  I do not suggest that any of this
makes it into the real source tree.

-----
John Kozubik - john at kozubik.com - http://www.kozubik.com



More information about the scponly mailing list