adding a new log-format escape

2005-06-27 Thread Andrew Shewmaker
I'm adding a new escape to log-format, %s, to print out the checksum of a file, and I've got a couple problems. They've got to be simple bugs, but I haven't been able to figure them out. The following patch gives me a broken pipe and a bus error when I test it. Note that I've applied the md5

Re: adding a new log-format escape

2005-06-27 Thread YOSHIFUJI Hideaki / 吉藤英明
In article [EMAIL PROTECTED] (at Mon, 27 Jun 2005 00:07:19 -0600), Andrew Shewmaker [EMAIL PROTECTED] says: + for (j = 0; j SUM_LENGTH; j++ ) { + snprintf(buf2 + j * 2, sizeof buf2, fmt, file-u.sum[j]); file-u.sum[j] 0xff +

Re: adding a new log-format escape

2005-06-27 Thread Paul Slootman
On Mon 27 Jun 2005, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote: In article [EMAIL PROTECTED] (at Mon, 27 Jun 2005 00:07:19 -0600), Andrew Shewmaker [EMAIL PROTECTED] says: + for (j = 0; j SUM_LENGTH; j++ ) { + snprintf(buf2 + j * 2, sizeof

OT: Re: Your email requires verification verify#UWUgyaRs5eQ0Ozo94QTL8FjSRuQdWxt

2005-06-27 Thread Paul Slootman
Could someone remove [EMAIL PROTECTED] (most probably) from the list, as people who subscribe to lists but require each and every poster to the list to jump through hoops to have their messages delivered to the person in question don't deserve a subscription... Paul On Mon 27 Jun 2005, [EMAIL

include/exclude - how to transfer /etc and /home/users from /?

2005-06-27 Thread Tomasz Chmielewski
I'm trying to copy recursively only /etc, /home/samba/profiles and /home/samba/shared. To do so, I use this rsync command: rsync --progress -v -u -a -z --stats \ --include=/etc \ --include=/home/samba/profiles \ --include=/home/samba/shared \ --exclude=/* \ --numeric-ids --delete-after -e ssh

Re: adding a new log-format escape

2005-06-27 Thread Wayne Davison
On Mon, Jun 27, 2005 at 12:07:19AM -0600, Andrew Shewmaker wrote: + for (j = 0; j SUM_LENGTH; j++ ) { + snprintf(buf2 + j * 2, sizeof buf2, fmt, file-u.sum[j]); Not every entry will have a non-zero sum pointer (e.g. symlinks, dirs, etc.),

Re: adding a new log-format escape

2005-06-27 Thread Wayne Davison
On Mon, Jun 27, 2005 at 09:22:25AM -0700, Wayne Davison wrote: so you need to be sure to check for this and print some other value (N/A) for entries with a NULL pointer. Actually, the proper fix is to check the mode using S_ISREG() and only ever dereference u.sum for a regular file (since other

Re: include/exclude - how to transfer /etc and /home/users from /?

2005-06-27 Thread Wayne Davison
On Mon, Jun 27, 2005 at 04:05:47PM +0200, Tomasz Chmielewski wrote: I'm trying to copy recursively only /etc, /home/samba/profiles and /home/samba/shared. The manpage explains how you need to include all directories on the way down to the file/dir in the recursive descent. Or just use

Re: adding a new log-format escape

2005-06-27 Thread Andrew Shewmaker
On 6/27/05, Paul Slootman [EMAIL PROTECTED] wrote: On Mon 27 Jun 2005, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote: In article [EMAIL PROTECTED] (at Mon, 27 Jun 2005 00:07:19 -0600), Andrew Shewmaker [EMAIL PROTECTED] says: + for (j = 0; j SUM_LENGTH; j++ ) { +

Re: crypted secrets

2005-06-27 Thread Wayne Davison
On Sun, Jun 26, 2005 at 01:44:02AM -0400, Alejandro Mery wrote: there is any trick/patch to let it support other htpasswd encrytion methods? crypt,md5,sha1? Since the password is not sent in the clear over the connection, having the password in plain-text in the secrets file is not a problem

Re: adding a new log-format escape

2005-06-27 Thread Andrew Shewmaker
On 6/27/05, Wayne Davison [EMAIL PROTECTED] wrote: On Mon, Jun 27, 2005 at 09:22:25AM -0700, Wayne Davison wrote: so you need to be sure to check for this and print some other value (N/A) for entries with a NULL pointer. Actually, the proper fix is to check the mode using S_ISREG() and

Re: 2.6.3, 2.6.4 incompatibilities

2005-06-27 Thread Wayne Davison
On Sun, Jun 26, 2005 at 01:02:42PM -0400, Nathan Bullock wrote: Invalid file index: 268456790 (count=0) [receiver] This is the pertinent error from that sequence -- this means that the data being sent over the socket has either been corrupted, or out-of- sync somehow. The first thing to check

Re: adding a new log-format escape

2005-06-27 Thread Wayne Davison
On Mon, Jun 27, 2005 at 10:56:41AM -0600, Andrew Shewmaker wrote: + strlcat(fmt, 02x, sizeof fmt); The purpose of the fmt buffer is to allow the user to specify something like %-20s and get the output formatted into their log line, so you shouldn't be using the fmt

Root privilege solution

2005-06-27 Thread Tinsley, Scott S. (ManTech) CTR
I want to set up RSYNC so it has root privilege on the remote server. I do not want to run rsync through inetd. I want to be able to limit who can use rsync when the remote end has root privilege. I prefer not to use rsync's internal user/secrets file. I do want to use SSH as the transport

Re: include/exclude - how to transfer /etc and /home/users from /?

2005-06-27 Thread Tomasz Chmielewski
Wayne Davison schrieb: On Mon, Jun 27, 2005 at 04:05:47PM +0200, Tomasz Chmielewski wrote: I'm trying to copy recursively only /etc, /home/samba/profiles and /home/samba/shared. The manpage explains how you need to include all directories on the way down to the file/dir in the recursive

Re: [PATCH] use cmp_modtime()

2005-06-27 Thread Wayne Davison
On Tue, Jun 28, 2005 at 01:03:10AM +0200, Markus F.X.J. Oberhumer wrote: The small patch below against current CVS uses cmp_modtime() instead of direct time_t comparisions in two more places. Thanks -- I've checked it into CVS. Also, it seems that cmp_modtime() should get called in

CVS update: rsync

2005-06-27 Thread Wayne Davison
Date: Tue Jun 28 00:12:08 2005 Author: wayned Update of /data/cvs/rsync In directory dp.samba.org:/tmp/cvs-serv2981 Modified Files: generator.c Log Message: Use cmp_modtime() in a couple more spots where a local modtime is compared with a remote modtime. Revisions: generator.c

CVS update: rsync

2005-06-27 Thread Wayne Davison
Date: Tue Jun 28 00:15:45 2005 Author: wayned Update of /data/cvs/rsync In directory dp.samba.org:/tmp/cvs-serv4618 Modified Files: NEWS Log Message: Mention the latest time-comparing fixes. Revisions: NEWS1.309 = 1.310