The attached patch for rsync-2.6.0 adds stderr logging support to rsyncd. It's needed for running rsyncd in a fully chrooted, supervised [1] environment. I've also sent it upstream. [1] http://cr.yp.to/daemontools.html Reproducible: Always Steps to Reproduce:
Created attachment 28961 [details, diff] stderr logging support for rsync-2.6.0
Created attachment 28962 [details, diff] patch for net-misc/rsync/rsync-2.6.0.ebuild to add stderr logging support
wanna handle this ?
is this fixed with 2.6.2 ?
Let's wait for Martin Pool to put this upstream before integrating it into Gentoo. Rsync is pretty critical to Gentoo so I'd rather not be introducing custom patches without Martin's blessing.
Yep. I totally agree. I'm going to mark this UPSTREAM for now.
Don't send it to me, send it to rsync@lists.samba.org.
Why don't you just use log file=/dev/fd/2 ?
I don't think you should add special behaviour unless there is something wrong with using /dev/fd/2. I would be fine with a documentation patch to suggest this.
Martin - thanks for the comments. That clears things up for me. I'm going to close this bug since the patch doesn't seem to be necessary. The docs are a separate issue that can be chased by someone else if they like.
/dev/fd/2 is only available if devfs is mounted within the chroot (it's just a symlink, not a real device). I'm using the chroot to restrict access to /dev and /proc, so mounting devfs would be counterproductive.