filename paths different in server mode
Wayne Davison
wayned at samba.org
Sun May 8 14:46:59 GMT 2005
On Wed, May 04, 2005 at 12:03:04AM -0600, Bob Proulx wrote:
> I am sure the problem is on the server side of the process.
I'd first double-check to make sure that there is no directory named
/mnt/tools/release/bin/bin on the server. Next, you might try turning
off chroot (by adding "use chroot = no" to the config file) and see if
that makes any difference -- if it does, it may be a path sanitization
issue.
I've attached a simple patch that will cause the server to log each
non-option arg it receives, what it is, and what it turns into when it
is sanitized.
..wayne..
-------------- next part --------------
--- options.c 3 May 2005 17:01:59 -0000 1.263
+++ options.c 8 May 2005 14:37:14 -0000
@@ -1019,8 +1019,11 @@ int parse_arguments(int *argc, const cha
if (sanitize_paths) {
int i;
- for (i = *argc; i-- > 0; )
+ for (i = *argc; i-- > 0; ) {
+ rprintf(FLOG, "Before: %s\n", (*argv)[i]);
(*argv)[i] = sanitize_path(NULL, (*argv)[i], "", 0);
+ rprintf(FLOG, "After: %s\n", (*argv)[i]);
+ }
if (tmpdir)
tmpdir = sanitize_path(NULL, tmpdir, NULL, 0);
if (partial_dir)
More information about the rsync
mailing list