search for: rsync_module

Displaying 20 results from an estimated 22 matches for "rsync_module".

2008 Feb 20
1
[PATCH] build fix without iconv support
diff --git a/clientserver.c b/clientserver.c index 2d7c28f..694a72d 100644 --- a/clientserver.c +++ b/clientserver.c @@ -806,6 +806,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) exit_cleanup(RERR_UNSUPPORTED); } +#ifdef ICONV_OPTION if (!iconv_opt) { if (ic_send != (iconv_t)-1) { iconv_close(ic_send); @@ -816,6 +817,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) i...
2011 Sep 12
2
Ignoring /boot
...to backup my gentoo linux system. ----- start of script ----- #!/bin/sh # # RSYNC_OPTS="--archive --one-file-system --perms --executability --progress --stats --delete-after --hard-links --keep-dirlinks --verbose --inplace" RSYNC_USER="bs" RSYNC_SERVER="192.168.6.6" RSYNC_MODULE="ben-desktop" RSYNC_PATH="/" RSYNC_EXCLUDES="--exclude=/usr/portage/distfiles --exclude=/tmp --exclude=/var --exclude=/home --exclude=/root --exclude=/usr --exclude=/bin --exclude=/opt --excl$ MOUNT_FOR_RSYNC="/boot" mount ${MOUNT_FOR_RSYNC} #ls -la /boot rsyn...
2006 Nov 07
2
ssh catch 22
Hi all, I'm stuck with a little dilemma and I thought someone could give me a little advice. Is there a way to use rsync with an ssh certificate? what I have: ---------------- First of all I am forced to use the root account with ssh which I know is a big no, no, but sometimes it can't be helped. Second, I need to use a certificate without a password as root which is even worst than
2003 Jul 31
2
rsync 2.5.6 globbing bug
...funet.fi::CPAN/modules/by-category/05_Networking_Devices_IPC/Net/* . \ | grep -v MOTD: rsync: connection unexpectedly closed (1598 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(165) This is because the array used to hold the expanded filename glob (argv in rsync_module(), clientserver.c) is only 1000 entries in size, and the above archive directory contains more than 1000 files. argv should probably be allocated with malloc and grown as necessary with realloc. I'm happy to submit a patch if that is acceptable. Please reply direct as I'm not ton the...
2017 Oct 31
2
[Bug 13112] New: receive_xattr heap overread with non null terminated name and xattr filter
...s.c:835 #5 0x40beac in recv_file_entry /home/raj/rsync/rsync/flist.c:1108 #6 0x415bee in recv_file_list /home/raj/rsync/rsync/flist.c:2476 #7 0x454eaa in do_server_recv /home/raj/rsync/rsync/main.c:1036 #8 0x4556f4 in start_server /home/raj/rsync/rsync/main.c:1115 #9 0x4b20f2 in rsync_module /home/raj/rsync/rsync/clientserver.c:1007 #10 0x4b2b11 in start_daemon /home/raj/rsync/rsync/clientserver.c:1135 #11 0x48f636 in start_accept_loop /home/raj/rsync/rsync/socket.c:618 #12 0x4b32d2 in daemon_main /home/raj/rsync/rsync/clientserver.c:1237 #13 0x458318 in main /home/raj/...
2002 Apr 03
4
Patch to avoid 'Connection reset by peer' error for rsync on cygwin
...io_printf(fd,"@ERROR: Unknown command '%s'\n", line); - return -1; + goto exitwithnomodule; } i = lp_number(line); if (i == -1) { io_printf(fd,"@ERROR: Unknown module '%s'\n", line); - return -1; + goto exitwithnomodule; } } return rsync_module(fd, i); + +exitwithnomodule: + shutdown(fd,SHUT_WR); + close(fd); + return -1; } END PATCH
2017 Oct 27
1
[Bug 13105] New: 1byte heap overflow in sanitize_path
...000eb71 thread T0 #0 0x44b485 in sanitize_path /home/raj/rsync/rsync/util.c:1077 #1 0x449484 in glob_expand /home/raj/rsync/rsync/util.c:717 #2 0x449af8 in glob_expand_module /home/raj/rsync/rsync/util.c:783 #3 0x478b61 in read_args /home/raj/rsync/rsync/io.c:1266 #4 0x4b12b6 in rsync_module /home/raj/rsync/rsync/clientserver.c:869 #5 0x4b2a49 in start_daemon /home/raj/rsync/rsync/clientserver.c:1135 #6 0x48f56e in start_accept_loop /home/raj/rsync/rsync/socket.c:618 #7 0x4b320a in daemon_main /home/raj/rsync/rsync/clientserver.c:1237 #8 0x4582da in main /home/raj/rsync...
2017 Oct 31
0
[Bug 13113] New: receive_xattr heap overflow when prepending RSYNC_PREFIX
...s.c:849 #2 0x40beac in recv_file_entry /home/raj/rsync/rsync/flist.c:1108 #3 0x415bee in recv_file_list /home/raj/rsync/rsync/flist.c:2476 #4 0x454eaa in do_server_recv /home/raj/rsync/rsync/main.c:1036 #5 0x4556f4 in start_server /home/raj/rsync/rsync/main.c:1115 #6 0x4b20f9 in rsync_module /home/raj/rsync/rsync/clientserver.c:1007 #7 0x4b2b18 in start_daemon /home/raj/rsync/rsync/clientserver.c:1135 #8 0x48f636 in start_accept_loop /home/raj/rsync/rsync/socket.c:618 #9 0x4b32d9 in daemon_main /home/raj/rsync/rsync/clientserver.c:1237 #10 0x458318 in main /home/raj/rsy...
2001 Nov 20
2
rsync server over SSH [includes code patches]
...11-19) on the list are apropos as well; at least one person was asking if there is any way to get modules with ssh. GORY DETAILS: The code changes are about 150 lines, plus 70 lines of man page changes. Most of the code changes were to several functions (e.g. auth_server(), start_accept_loop(), rsync_module(), start_daemon()) to make them handle two file descriptors (f_in and f_out) instead of one bidirectional socket file descriptor (fd). Other changes include: - main() will call start_daemon() instead of start_server() if the program is called with both '--server' and '--daemon'...
2016 Jan 21
1
[Bug 11683] New: hang on select when send many files
...at main.c:901 #8 0x000000000041dbbd in do_server_recv (f_in=3, f_out=3, argc=<value optimized out>, argv=<value optimized out>) at main.c:1070 #9 start_server (f_in=3, f_out=3, argc=<value optimized out>, argv=<value optimized out>) at main.c:1104 #10 0x000000000043c5b8 in rsync_module (f_in=3, f_out=3, i=3, addr=<value optimized out>, host=0x67d2a0 "tjtx-100-201.58os.org") at clientserver.c:1003 #11 0x000000000043d58d in start_daemon (f_in=3, f_out=3) at clientserver.c:1094 #12 0x0000000000433b20 in start_accept_loop (port=873, fn=0x43d3b0 <start_daemon>) a...
2017 Oct 27
1
[Bug 13104] New: NULL deref do_server_sender when argc=0
...================ ==7407==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000453662 bp 0x7fffffffae90 sp 0x7fffffffae50 T0) #0 0x453661 in do_server_sender /home/raj/rsync/rsync/main.c:786 #1 0x4556a0 in start_server /home/j/rsync/rsync/main.c:1110 #2 0x4b202a in rsync_module /home/j/rsync/rsync/clientserver.c:1007 #3 0x4b2a49 in start_daemon /home/j/rsync/rsync/clientserver.c:1135 #4 0x48f56e in start_accept_loop /home/j/rsync/rsync/socket.c:618 #5 0x4b320a in daemon_main /home/j/rsync/rsync/clientserver.c:1237 #6 0x4582da in main /home/j/rsync/rsync/ma...
2002 May 09
0
[PATCH] (Resubmission) 'Connection reset by peer' with rsync server on cygwin
...io_printf(fd,"@ERROR: Unknown command '%s'\n", line); - return -1; + goto exitwithnomodule; } i = lp_number(line); if (i == -1) { io_printf(fd,"@ERROR: Unknown module '%s'\n", line); - return -1; + goto exitwithnomodule; } } return rsync_module(fd, i); + +exitwithnomodule: + shutdown(fd,SHUT_WR); + close(fd); + return -1; } END PATCH
2004 Sep 29
1
--link-dest doesn't work
i want to backup a website every day, but only get the changed files. Otherwise just hard link to yesterdays file. So I'm trying --link-dest. here is the script (backup.sh) I'm trying to use.... #!/bin/bash if [ -z "$1" ]; then echo usage: $0 rsync_module exit fi BACKUP_DIR=/home/user/backups/sites/$1 NEW_BACKUP=$BACKUP_DIR/`date +%m-%d-%Y` OLD_BACKUP=$BACKUP_DIR/`date -d "-1 day" +%m-%d-%Y` rsync -a -e ssh --delete --link-dest=$OLD_BACKUP --exclude access_log --exclude error_log root@treedesign.com::$1 $NEW_BACKUP ... This scr...
2007 Feb 15
2
Client can trick daemon into running server code with am_server == 0
Dear rsync people (particularly Wayne), I noticed that an rsync daemon counts on the client sending a --server option so that am_server gets set to 1. If the client doesn't supply this option, am_server remains 0 but the daemon runs start_server anyway. This is potentially dangerous and might lead to a security hole, although I haven't found one yet. I suggest that the daemon either
2001 Dec 13
1
Upgrade from 2.4.4 to 2.4.6
Hi, I've had some issues with rsync over ssh with version 2.4.4 which an update to 2.4.6 fixed. The problem I have now is that machines which do not have a valid reverse dns entry for their IP addresses get empty directory listings from the server, even though they can get the module list and the motd each time. This is what I see in the server's log file for each attempt from such hosts
2004 Jan 28
1
rsync error using ssh : @ERROR: access denied to server.domain.com from unknown (0.0.0.0) {Scanned By MailScanner}
I use rsync to mirror several servers. I run RH7.3 My rsyncd.conf file is: motd file = /etc/rsync.d/rsync.motd log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock hosts allow = 10.1.2.200 10.1.2.201 hosts deny = 0.0.0.0/0.0.0.0 use chroot = yes max connections = 3 #syslog facility = [website] path = /var/www/website comment = Connex Live WWW
2017 Apr 05
0
Transfer hangs, both sides waiting on receive
...6 #6 send_files (f_in=4, f_out=1930300096) at sender.c:332 #7 0x00007f9a71e37f6c in do_server_sender (argv=<optimized out>, argc=<optimized out>, f_out=3, f_in=3) at main.c:840 #8 start_server (f_in=3, f_out=3, argc=2, argv=0x7f9a7302f240) at main.c:1107 #9 0x00007f9a71e5a34e in rsync_module (f_in=3, f_out=3, i=0, addr=0x7f9a72098518 <numeric_ids> "\377\377\377\377", host=0x7f9a72098c80 <name_buf> "host-a.example.com") at clientserver.c:1009 #10 0x00007f9a71e5b260 in start_daemon (f_in=3, f_out=3) at clientserver.c:1100 #11 0x00007f9a71e4f5d1 in...
2004 May 27
0
compiling on HP-UX
...sion params.c:397: warning: signed and unsigned type in conditional expression loadparm.c: In function `strwicmp': loadparm.c:484: warning: signed and unsigned type in conditional expression loadparm.c:486: warning: signed and unsigned type in conditional expression clientserver.c: In function `rsync_module': clientserver.c:266: warning: signed and unsigned type in conditional expression clientserver.c:276: warning: signed and unsigned type in conditional expression access.c: In function `match_address': access.c:102: warning: implicit declaration of function `getaddrinfo' access.c:113: wa...
2002 Mar 28
1
(no subject)
...loadparm.c -o loadparm.o loadparm.c: In function `strwicmp': loadparm.c:482: warning: subscript has type `char' loadparm.c:484: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c clientserver.c -o clientserver.o clientserver.c: In function `rsync_module': clientserver.c:227: warning: subscript has type `char' clientserver.c:237: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c access.c -o access.o access.c: In function `match_address': access.c:41: warning: subscript has type `char...
2002 Feb 20
1
Errors compiling rsync 2.5.2 on Solaris 8
...t -c loadparm.c -o loadparm.o loadparm.c: In function `strwicmp': loadparm.c:471: warning: subscript has type `char' loadparm.c:473: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c clientserver.c -o clientserver.o clientserver.c: In function `rsync_module': clientserver.c:208: warning: subscript has type `char' clientserver.c:218: warning: subscript has type `char' gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c access.c -o access.o access.c: In function `match_address': access.c:41: warning: subscript has type `char' gcc...