Possible 3.0.4 bug with -s (--protect-args) - protocol error - Tools

This is a discussion on Possible 3.0.4 bug with -s (--protect-args) - protocol error - Tools ; Hi. Two different hosts with 3.0.4 compiled from source, no patches. It seems fine except that -s causes protocol failures. See below. Local host is Sparc (Solaris 5.8), remote is Sparc (Solaris 5.10) or i686 Linux. Regards, Giuliano. userX@hostA$ /home/userX/tools/bin/rsync ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Possible 3.0.4 bug with -s (--protect-args) - protocol error

  1. Possible 3.0.4 bug with -s (--protect-args) - protocol error

    Hi.

    Two different hosts with 3.0.4 compiled from source, no patches.

    It seems fine except that -s causes protocol failures. See below.

    Local host is Sparc (Solaris 5.8), remote is Sparc (Solaris 5.10) or i686 Linux.

    Regards,
    Giuliano.

    userX@hostA$ /home/userX/tools/bin/rsync -v -v -v -v -v -n
    --rsync-path /home/userX/tools/bin/rsync -s . hostB:
    FILE_STRUCT_LEN=16, EXTRA_LEN=4
    cmd= machine=hostB user= path= cmd[0]=ssh cmd[1]=hostB
    cmd[2]=/home/userX/tools/bin/rsync cmd[3]=--server cmd[4]=-svvvvvne.s
    cmd[5]=(NULL) cmd[6]=. cmd[7]=
    opening connection using: ssh hostB /home/userX/tools/bin/rsync
    --server -svvvvvne.s
    note: iconv_open("646", "646") failed (22) -- using isprint() instead
    of iconv().
    protected args: .
    FILE_STRUCT_LEN=16, EXTRA_LEN=4
    (Server) Protocol versions: remote=7680, negotiated=30
    protocol version mismatch -- is your shell clean?
    (see the rsync man page for an explanation)
    _exit_cleanup(code=2, file=compat.c, line=171): entered
    rsync error: protocol incompatibility (code 2) at compat.c(171)
    [receiver=3.0.4]
    _exit_cleanup(code=2, file=compat.c, line=171): about to call exit(2)
    (Client) Protocol versions: remote=30, negotiated=30
    rsync: connection unexpectedly closed (4 bytes received so far) [sender]
    _exit_cleanup(code=12, file=io.c, line=632): entered
    rsync error: error in rsync protocol data stream (code 12) at io.c(632)
    [sender=3.0.4]
    _exit_cleanup(code=12, file=io.c, line=632): about to call exit(12)

    Local version:

    rsync version 3.0.4 protocol version 30
    Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others.
    Web site: http://rsync.samba.org/
    Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, no IPv6, batchfiles, inplace,
    append, ACLs, no xattrs, iconv, no symtimes

    rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
    are welcome to redistribute it under certain conditions. See the GNU
    General Public Licence for details.

    Remote version:

    rsync version 3.0.4 protocol version 30
    Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others.
    Web site: http://rsync.samba.org/
    Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, no IPv6, batchfiles, inplace,
    append, ACLs, no xattrs, iconv, no symtimes

    rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
    are welcome to redistribute it under certain conditions. See the GNU
    General Public Licence for details.
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  2. Re: Possible 3.0.4 bug with -s (--protect-args) - protocol error

    On Thu, 2008-10-09 at 18:44 +0100, Giuliano Procida wrote:
    > Two different hosts with 3.0.4 compiled from source, no patches.
    >
    > It seems fine except that -s causes protocol failures. See below.


    I can reproduce this:

    matt@mattlaptop2:~ $ rsync -n . localhost:
    skipping directory .
    matt@mattlaptop2:~ $ rsync -s -n . localhost:
    protocol version mismatch -- is your shell clean?
    (see the rsync man page for an explanation)
    rsync error: protocol incompatibility (code 2) at compat.c(171) [receiver=3.0.4]
    rsync: connection unexpectedly closed (4 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(632) [sender=3.0.4]

    I'll look into it when I get a chance.

    Matt

    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


  3. Re: Possible 3.0.4 bug with -s (--protect-args) - protocol error

    On Thu, Oct 09, 2008 at 06:44:20PM +0100, Giuliano Procida wrote:
    > (Server) Protocol versions: remote=7680, negotiated=30
    > protocol version mismatch -- is your shell clean?


    This will be fixed in the next version. Until then, you can work around
    the problem by supplying a "." after the "host:" arg:

    rsync -av -s . hostB:.

    ...wayne..
    --
    Please use reply-all for most replies to avoid omitting the mailing list.
    To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
    Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


+ Reply to Thread