[scponly] how do I use rsync with scponly ? - patch enclosed

John Kozubik john at kozubik.com
Tue Mar 21 16:10:16 EST 2006


Kaleb,

On Tue, 21 Mar 2006, Kaleb Pederson wrote:

> Thanks John!  Were you also bitten by this?


Yes.  I also have not (I guess) used rsync against my scponly-enabled
servers for a while.  rsync is a definite requirement, so I needed to get
it back ASAP.

Here is the patch - it's not exactly what you had in mind, but it works.

-----
John Kozubik - john at kozubik.com - http://www.kozubik.com
-------------- next part --------------
--- scponly-4.6/helper.c.orig   Tue Mar 21 20:46:53 2006
+++ scponly-4.6/helper.c        Tue Mar 21 20:51:15 2006
@@ -176,6 +176,17 @@
                                 */
                                optind=0;
 #endif
+
+                               /*
+                                *      special case for rsync -- permit --server as first
+                                *      option
+                                */
+                               if (exact_match(PROG_RSYNC, av[0]) && exact_match("--server", av[1]))
+                               {
+                                       syslog(LOG_WARNING, "first argument to rsync was permitted '--server'");
+                                       ++optind;
+                               }
+
                                /*
                                 *      tell getopt to only be strict if the 'opts' is well defined
                                 */


More information about the scponly mailing list