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 *

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

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, et

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

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 --file

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

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 i

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 fm

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 shell.

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 desc

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 send_fi

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

2005-06-27 Thread Wayne Davison
On Mon, Jun 27, 2005 at 10:57:47PM +0200, Tomasz Chmielewski wrote: > I just spent another hour reading the manual and trying to figure it > out, but I can't make it. Did you also read the email I pointed you at? Using the --files-from option that it recommended would have been the easiest solut

Re: Root privilege solution

2005-06-27 Thread Wayne Davison
On Mon, Jun 27, 2005 at 01:51:28PM -0400, Tinsley, Scott S. (ManTech) CTR wrote: > @ERROR: invalid uid nobody Does your system not have a user "nobody" in the passwd file? You can always set the user via the uid option (e.g. "uid = root") so that rsync doesn't try to switch to the default u