Displaying 14 results from an estimated 14 matches for "rerr_protocol".
2003 Oct 25
1
Trivial documentation patch
...file: /cvsroot/rsync/rsync.yo,v
retrieving revision 1.128
diff -u -r1.128 rsync.yo
--- rsync.yo 7 Oct 2003 20:33:08 -0000 1.128
+++ rsync.yo 24 Oct 2003 19:33:09 -0000
@@ -1109,15 +1109,17 @@
manpagesection(EXIT VALUES)
startdit()
-dit(bf(RERR_SYNTAX 1)) Syntax or usage error
-dit(bf(RERR_PROTOCOL 2)) Protocol incompatibility
-dit(bf(RERR_FILESELECT 3)) Errors selecting input/output files, dirs
+dit(bf(RERR_SYNTAX 1)) Syntax or usage error
+dit(bf(RERR_PROTOCOL 2)) Protocol incompatibility
+dit(bf(RERR_FILESELECT 3)) Errors selecting input/output files,...
2015 Apr 21
1
[Bug 11229] New: off-by-one in snprintf() check
...antdisaster.de>
---
io.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/io.c b/io.c
index b9a9bd082737..03e13d846fa0 100644
--- a/io.c
+++ b/io.c
@@ -2283,7 +2283,7 @@ void io_printf(int fd, const char *format, ...)
if (len < 0)
exit_cleanup(RERR_PROTOCOL);
- if (len > (int)sizeof buf) {
+ if (len >= (int)sizeof buf) {
rprintf(FERROR, "io_printf() was too long for the buffer.\n");
exit_cleanup(RERR_PROTOCOL);
}
--
1.7.7
--
You are receiving this mail because:
You are the QA Conta...
2020 Feb 06
0
[PATCH] Add support for zstd compression
...int32 nb)
+{
+ static int comp_init_done, flush_pending;
+ ZSTD_EndDirective flush = ZSTD_e_continue;
+ int32 n, r;
+
+ /* initialization */
+ if (!comp_init_done) {
+
+ zstd_cctx = ZSTD_createCCtx();
+ if (!zstd_cctx) {
+ rprintf(FERROR, "compression init failed\n");
+ exit_cleanup(RERR_PROTOCOL);
+ }
+
+ obuf = new_array(char, MAX_DATA_COUNT + 2);
+ if (!obuf)
+ out_of_memory("send_deflated_token");
+
+ ZSTD_CCtx_setParameter(zstd_cctx, ZSTD_c_compressionLevel,
+ def_compress_level);
+ zstd_out_buff.dst = obuf + 2;
+
+ comp_init_done = 1;
+ }
+
+ if (last_token...
2003 Dec 20
3
preview release: 2.6.0pre1
OK, I packaged up the current CVS as our first preview release for
2.6.0. You can grab it here:
http://samba.org/ftp/rsync/preview/rsync-2.6.0pre1.tar.gz
The MD5 checksum is:
70e9dea967f083c231b7821ef35aef1b rsync-2.6.0pre1.tar.gz
There is not currently a .sig file for the package, but I'm looking into
that next.
Please test this and let me know if we have any remaining issues
2010 Apr 14
0
issues with batch mode for incremental backups
...amecmp_type >= basis_dir_cnt) {
- rprintf(FERROR,
- "invalid basis_dir index: %d.\n",
- fnamecmp_type);
- exit_cleanup(RERR_PROTOCOL);
+ fnamecmp = fname;
+ break;
}
pathjoin(fnamecmpbuf, sizeof fnamecmpbuf,
basis_dir[fnamecmp_type], fname);
My resto...
2014 Dec 01
2
[Bug 10977] New: Rsync path spoofing attack vulnerability (rsync 3.1.1 tested)
...RANSFER) {
int i = ndx - cur_flist->ndx_start;
if (i < 0 || !S_ISREG(cur_flist->files[i]->mode)) {
rprintf(FERROR,
"received request to transfer non-regular file: %d [%s]\n",
ndx, who_am_i());
exit_cleanup(RERR_PROTOCOL);
}
}
*/
Vulnerability Demo :
Online test:
rsync -avvzP 106.185.33.114::yaseng /tmp/yaseng
--
You are receiving this mail because:
You are the QA Contact for the bug.
2014 Nov 14
6
[Bug 10936] New: Rsync path hijacking attack vulnerability
...RANSFER) {
int i = ndx - cur_flist->ndx_start;
if (i < 0 || !S_ISREG(cur_flist->files[i]->mode)) {
rprintf(FERROR,
"received request to transfer non-regular file: %d [%s]\n",
ndx, who_am_i());
exit_cleanup(RERR_PROTOCOL);
}
}
*/
The file "pwned" will be downloaded into forged path(/root/pwned.test).
--
You are receiving this mail because:
You are the QA Contact for the bug.
2004 Jul 12
2
[PATCH] Batch-mode rewrite
...c 12 Jul 2004 00:37:46 -0000
***************
*** 28,33 ****
--- 28,36 ----
int remote_protocol = 0;
extern int am_server;
+ extern int am_sender;
+ extern int write_batch;
+ extern int batch_fd;
extern int checksum_seed;
***************
*** 73,83 ****
--- 76,138 ----
exit_cleanup(RERR_PROTOCOL);
}
+ /* CAS: I think this is a good candidate for a protocol
+ * change. Instead of:
+ *
+ * if (am_server) write_int() stuff;
+ * else read_int() stuff;
+ *
+ * it is good to remove the protocol dependence on server-ness:
+ *
+ * if (am_sender) write_int() stuff;
+...
2003 Jun 25
3
patch draft for extended attributes on linux
...t xa_list *xal;
+
+ /* Read name length and check */
+ name_len = read_int(f);
+
+ if (name_len < 0 || name_len > 65536) {
+ rprintf(FERROR, "xattr name is too long (%ld)\n",
+ (long) name_len);
+ exit_cleanup(RERR_PROTOCOL);
+ }
+
+ if (name_len == 0) {
+ *ppnext = NULL; /* end of list */
+ return 0;
+ }
+
+ /* Allocate */
+ if ((xal = malloc(sizeof (struct xa_list))) == NULL)
+ out_of_memory("allocating xa_list");
+
+...
2017 Feb 07
12
[Bug 12569] New: Missing directory errors not ignored
...io_error |= IOERR_VANISHED;
rprintf(FERROR,
- "ABORTING due to invalid path from sender: %s/%s\n",
+ "WARNING: invalid path from sender: %s/%s\n",
dn, file->basename);
- exit_cleanup(RERR_PROTOCOL);
+ return;
}
if (relative_paths && !implied_dirs
&& do_stat(dn, &sx.st) < 0) {
Now the exit code is 24, partial transfer, as would be expected.
--
You are receiving this mail because:
You are the QA Contact for the bu...
2005 Jan 31
1
[patch] add "--ignore" option
...6 2005
@@ -362,7 +362,7 @@
if (server_filter_list.head
&& check_filter(&server_filter_list, fname,
- S_ISDIR(file->mode)) < 0) {
+ S_ISDIR(file->mode)) == M_EXCLUDE) {
rprintf(FERROR, "attempt to hack rsync failed.\n");
exit_cleanup(RERR_PROTOCOL);
}
@@ -556,3 +556,4 @@
return 0;
}
+
diff -ur ../rsync-HEAD-20050125-1221GMT.orig/rsync.h ./rsync.h
--- ../rsync-HEAD-20050125-1221GMT.orig/rsync.h Tue Jan 25 12:21:14 2005
+++ ./rsync.h Thu Jan 27 14:47:03 2005
@@ -114,6 +114,7 @@
#define XFLG_DIRECTORY (1<<4)
#define XFLG_NO_PR...
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
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch?
Thanks for the reminder.
I've just committed Jos's rsync+ patch onto the
"branch_mbp_rsyncplus_merge" branch. If it works OK and nobody
screams I will move it across onto the main tree tomorrow or
Wednesday.
I see the patch doesn't add documentation about the new options to the
man page, so we should fix that in the future.
2010 Jun 15
3
about rsyncing of block devices
...e: %d [%s]\n",
ndx, who_am_i());
diff -pur rsync-3.0.7/sender.c rsync-3.0.7.new/sender.c
--- rsync-3.0.7/sender.c 2009-12-13 01:23:03.000000000 +0000
+++ rsync-3.0.7.new/sender.c 2010-06-15 15:09:50.657553229 +0100
@@ -309,6 +309,20 @@ void send_files(int f_in, int f_out)
exit_cleanup(RERR_PROTOCOL);
}
+ /* On Linux systems (at least), st_size is typically 0 for devices.
+ * If so, try to determine the actual device size. */
+ if (IS_DEVICE(st.st_mode) && st.st_size == 0) {
+ OFF_T off = lseek(fd, 0, SEEK_END);
+ if (off == (OFF_T) -1)
+ rsyserr(FERROR, errno, "fa...