search for: extra_len

Displaying 20 results from an estimated 24 matches for "extra_len".

2017 Feb 07
2
[Bug 12568] New: Integer overflow still affects xattrs.c
...nippet is as follows. 684 for (num = 1; num <= count; num++) { 685 char *ptr, *name; 686 rsync_xa *rxa; 687 size_t name_len = read_varint(f); 688 size_t datum_len = read_varint(f); 689 size_t dget_len = datum_len > MAX_FULL_DATUM ? 1 + MAX_DIGEST_LEN : datum_len; 690 size_t extra_len = MIGHT_NEED_RPRE ? RPRE_LEN : 0; 691 if ((dget_len + extra_len < dget_len) 692 || (dget_len + extra_len + name_len < dget_len)) 693 overflow_exit("receive_xattr"); 694 ptr = new_array(char, dget_len + extra_len + name_len); 695 if (!ptr) 696 out_of_memory...
2017 Oct 31
0
[Bug 13113] New: receive_xattr heap overflow when prepending RSYNC_PREFIX
...re {"--server", "--filter", "+x jk", "-X", ".", ".", "\0"}; code snippets are from xattrs.c in receive_xattr a name is read from the sender. The name might need to be prefixed depending on am_root. To make room for this prefix extra_len is possibly allocated. 818 size_t extra_len = MIGHT_NEED_RPRE ? RPRE_LEN : 0; 822 ptr = new_array(char, dget_len + extra_len + name_len); <-- the length values are received from the sender. In this case I'm sending dget_len = 0 61 #ifdef HAVE_LINUX_XATTRS 62 #define...
2006 Jan 06
1
Repost: Help - compilation of winbind_nss_solaris.c/3.0.21a/Solaris 7 and older fails
...b/tmp/samba-3.0.20b/source/nsswitch/wb_common.c /smb/tmp/samba-3.0.21a/source/nsswitch/wb_common.c 237c237,238 < int connect_errno = 0, errnosize; --- > int connect_errno = 0; > socklen_t errnosize; 545a547,551 > > if ((request->extra_len != 0) && > (write_sock(request->extra_data, request->extra_len, request->flags & WBFLAG_RECURSE) == -1)) { > return NSS_STATUS_UNAVAIL; > } ---------------------- Configure ./configure --with-acl-support --with-ldap=no --disable-cup...
2010 Feb 17
1
Problems transferring from older version of rsync to new
...> authoritative# rsync --version rsync version 3.0.7 protocol version 30 I have the following problem when trying to fetch files from the system running the old daemon: # /usr/local/bin/rsync --protocol=29 -vvvvvvvv rsync://cis/namedb/named.cis.slave.conf /etc/namedb/cis FILE_STRUCT_LEN=24, EXTRA_LEN=4 opening tcp connection to cis port 873 sending daemon args: --server --sender -vvvv . namedb/named.cis.slave.conf (Client) Protocol versions: remote=29, negotiated=29 Invalid flist flag: 1004 [Receiver] _exit_cleanup(code=2, file=flist.c, line=2349): entered rsync error: protocol incompatibility...
2010 Mar 23
2
rsync: connection unexpectedly closed (0 bytes received so far)
...elp. This is using versions 3.0.6 (server) and 3.0.7 (client). Unfortunately, I have to type the client stuff in by hand. ("Secured" laptop with highlighting & copying disabled.) Anyway: $ rsync -vvvvvv -a -e ssh --recursive gdoc rsync-acct at 99.99.99.99::doc file_struct_len=16, extra_len=4 opening connection .... note: iconv_open("UTF-8", "UTF-8") succeeded. sending daemon args: .. rsync: connection unexpectedly closed (0 byes received so far) [sender] [sender] _exit_cleanup(code=12, file=.../io.c, line=601): about to call exit(12) ==== Yet this works correctly...
2008 Oct 09
2
Possible 3.0.4 bug with -s (--protect-args) - protocol error
...t 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=<NULL> machine=hostB user=<NULL> 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"...
2018 Dec 30
2
--partial does not "unhide" the files
...transfer, the files are not renamed from .<tmpfile> to <file>. Where to go next? Here is the verbose output after transferring an empty file heiko at blade:~/Pictures$ rsync -iavvvvvvvP ./x platte.local:/shares/Storage/Bilder\\\ von\\\ Heikos\\\ Computer/ FILE_STRUCT_LEN=24, EXTRA_LEN=4 cmd=<NULL> machine=platte.local user=<NULL> path=/shares/Storage/Bilder\ von\ Heikos\ Computer/ cmd[0]=ssh cmd[1]=platte.local cmd[2]=rsync cmd[3]=--server cmd[4]=-vvvvvvvlogDtpre.iLsfxC cmd[5]=--log-format=%i cmd[6]=--partial cmd[7]=. cmd[8]=/shares/Storage/Bilder\ von\ Heiko...
2018 Dec 30
0
--partial does not "unhide" the files
...d from .<tmpfile> to <file>. > > Where to go next? > > Here is the verbose output after transferring an empty file > > heiko at blade:~/Pictures$ rsync -iavvvvvvvP ./x platte.local:/shares/Storage/Bilder\\\ von\\\ Heikos\\\ Computer/ > FILE_STRUCT_LEN=24, EXTRA_LEN=4 > cmd=<NULL> machine=platte.local user=<NULL> path=/shares/Storage/Bilder\ von\ Heikos\ Computer/ > cmd[0]=ssh cmd[1]=platte.local cmd[2]=rsync cmd[3]=--server cmd[4]=-vvvvvvvlogDtpre.iLsfxC cmd[5]=--log-format=%i cmd[6]=--partial cmd[7]=. cmd[8]=/shares/Storage/Bilder\...
2019 Nov 05
1
Segmentation fault using rsync client on Android device
...ss -rdt rsync://192.168.1.205:12000 ``` I get this output: ``` opening tcp connection to 192.168.1.205 port 12000 Connected to 192.168.1.205 (192.168.1.205) Segmentation fault ``` Not much to go on. I tried running the same command via rsync in cygwin and it worked fine: ``` FILE_STRUCT_LEN=24, EXTRA_LEN=4 opening tcp connection to 192.168.1.205 port 12000 Connected to 192.168.1.205 (192.168.1.205) msg checking charset: UTF-8 sending daemon args: --server --sender -vvvvvvvvtre.iLsfxC . / (5 args) ziosk Ziosk Content Files ``` Can anyone help me understand why rsync is crashing on Androi...
2011 Sep 13
1
protect rule prevents file sending when in merge filter file?
...39;, and the sending side files are removed, which explains the behaviour seen. Whether it's a bug, could anyone suggest an alternative rule set which would allow us to achieve our goal here so we can work with 3.0.x rsync? Regards, Lassi (a) [client] add_rule(-r /x/***) FILE_STRUCT_LEN=24, EXTRA_LEN=4 cmd=<NULL> machine=<NULL> user=<NULL> path=/tmp/bbb/ cmd[0]=. cmd[1]=/tmp/bbb/ note: iconv_open("UTF-8", "UTF-8") succeeded. (Client) Protocol versions: remote=30, negotiated=30 (Server) Protocol versions: remote=30, negotiated=30 building file list ... [se...
2019 Oct 31
0
rsync CLI protocol documentation
...rsion I have to answer with the remote protocol version for example, if I want to emulate protocol version 31: 1f 00 00 00 and then I need to send this 5 (magic) bytes: 3f 94 8b b4 5d after this the rsync client prints: (Client) Protocol versions: remote=31, negotiated=31 FILE_STRUCT_LEN=24, EXTRA_LEN=4 and then sends the file lists. Inside the bytes I receive server side I can read the file name but I need some docs on how to parse these bytes and what I need to expect. I would like to have some documentation about this protocol for rsync CLI, is this documented somewhere? For example I i...
2007 Dec 19
1
3.0.0pre7 compiler warning on ia64
Any concerns with the compiler warning on flist.c on a ia64 system running SLES10SP1? ~/rsync-3.0.0pre7> make gcc -std=gnu99 -g -O2 -DHAVE_CONFIG_H -Wall -W -o mkrounding -I. ./ mkrounding.c ./mkrounding >rounding.h Rounding file_extras in multiples of 2 (EXTRA_LEN=4, FILE_STRUCT_LEN=24) gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c flist.c -o flist.o /tmp/ccqjJwNs.s: Assembler messages: /tmp/ccqjJwNs.s:2995: Warning: Use of 'mov' may violate WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 14 /tmp/...
2017 Jul 28
2
Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8
...id_rsa\"" --stats --files-from=/cygdrive/d/WorkingDIr/c_from_file.dat -vvvvvvvv --exclude-from=/cygdrive/d/WorkingDIr/c_exc_file.dat / systemID at systemID.WebURL.com:/data/current/systemID/cygdrive/c > "D:\WorkingDIr\systemID.log" 2>&1Logging file:FILE_STRUCT_LEN=16, EXTRA_LEN=4cmd=ssh -p 31122 -i "/cygdrive/c/Users/administrator/.ssh/id_rsa" machine=systemID.WebURL.com user=systemID path=/data/current/systemID/cygdrive/ccmd[0]=ssh cmd[1]=-p cmd[2]=31122 cmd[3]=-i cmd[4]=/cygdrive/c/Users/administrator/.ssh/id_rsa cmd[5]=-l cmd[6]=systemID cmd[7]=systemID.WebUR...
2007 Dec 02
3
rsync hangs when accessing through SSH (Leopard OS X)
To preface, I'm running Leopard OSX and am using rsync version 2.6.9 protocol version 29. Whenever I attempt to sync (using rsync obviously) a folder on my local drive to my web server (netfirms.com is my web host) using SSH, the process hangs. I have to force kill it in order to continue using Terminal. I can connect to my server space using SSH just fine by itself, and I ran
2016 Feb 16
2
BackupPC using rsync fails with "protocol version mismatch -- is your shell clean?"
...-l backup-user 192.168.10.20 /usr/local/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . /home/backup-user/test Adding some verbose to the rsync command sent to the client, it says: FILE_STRUCT_LEN=24, EXTRA_LEN=4 (Server) Protocol versions: remote=168430090, negotiated=31 ########################### Notice the remote protocol version protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) [sender] _exit_cleanup(code=2, file=compat.c, line=178): entered rsync error: p...
2009 Aug 17
1
rsync: connection unexpectedly closed
...e the potential causes for it, things to check, etc? C:\CMS\PageGenerator>rsync -avc --delete -vvvvv -e "ssh.exe -i C:\cms\PageGenera tor\qa_rsa" \\cagecfsu1.saifg.rbc.com\YCM0\InternalCache\test_aug17 nasadmin at 10 .243.101.218:/cygdrive/g/EWCMS_SYNC/test_aug17/ FILE_STRUCT_LEN=16, EXTRA_LEN=4 cmd=ssh.exe -i C:\cms\PageGenerator\qa_rsa machine=10.243.101.218 user=nasadmin path=/cygdrive/g/EWCMS_SYNC/test_aug17/ cmd[0]=ssh.exe cmd[1]=-i cmd[2]=C:\cms\PageGenerator\qa_rsa cmd[3]=-l cmd[4]=nas admin cmd[5]=10.243.101.218 cmd[6]=rsync cmd[7]=--server cmd[8]=-vvvvvvlogDtprce .iLs cmd[9]=--d...
2016 Feb 16
0
BackupPC using rsync fails with "protocol version mismatch -- is your shell clean?"
...ocal/bin/rsync --server --sender --numeric-ids --perms > --owner --group -D --links --hard-links --times --block-size=2048 > --recursive --ignore-times . /home/backup-user/test > > Adding some verbose to the rsync command sent to the client, it > says: > > FILE_STRUCT_LEN=24, EXTRA_LEN=4 > > (Server) Protocol versions: remote=168430090, negotiated=31 > ########################### Notice the remote protocol version > protocol version mismatch -- is your shell clean? (see the rsync > man page for an explanation) [sender] _exit_cleanup(code=2, > file=compat.c, l...
2007 Oct 17
3
DO NOT REPLY [Bug 5022] New: FreeBSD 4.11 - Compilation Fails - uidlist.c - gcc2 / gcc3
...the latest version, compilation fails at uidlist.c. I tried both gcc versions, and they both fail at the same point. gcc version 2.95.4 20020320 [FreeBSD] gcc -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -o mkrounding -I. ./mkrounding.c ./mkrounding >rounding.h No rounding needed for file_extras (EXTRA_LEN=4, FILE_STRUCT_LEN=16) gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c flist.c -o flist.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c rsync.c -o rsync.o rsync.c: In function `read_ndx_and_attrs': rsync.c:215: warning: `flist' might be used uninitialized in this functio...
2015 Oct 24
15
[Bug 11572] New: rsync --debug doesn't work, and gives erroneous results when taken out
.... 20 john john 4096 Oct 24 12:41 food drwxr-xr-x. 7 john john 4096 Oct 24 12:45 .. ------------------------------------------------- // // debug on // // /////////////////////////////////////////////////// [john at johnsplace Downloads]$ rsync -rav --debug 2015 delete_me/ FILE_STRUCT_LEN=24, EXTRA_LEN=4 cmd=<NULL> machine=<NULL> user=<NULL> path=. cmd[0]=. cmd[1]=. msg checking charset: UTF-8 [sender] safe_read(5)=4 (Client) Protocol versions: remote=31, negotiated=31 [Receiver] safe_read(0)=4 (Server) Protocol versions: remote=31, negotiated=31 [sender] safe_read(5)=1 [sender]...
2012 Jun 09
2
[patch] NFSv4/ZFS ACLs
This is a PoC patch for NFSv4/ZFS ACLs. The objective of the patch is that rsync --acls support NFSv4/ZFS ACLs without requiring a new command line option NFSv4 ACLs can't be represented using POSIX draft ACLs, if an NFSv4 ACL is present a separate POSIX draft ACL will not be present and there are new APIs to access NFSv4 ACLs. So we need to distinguish between NFSv4 ACLs and POSIX ACLs in