On Mon, Dec 23, 2013 at 11:42 AM, Florian Sager <sa...@agitos.de> wrote:

>  are you sure you tried it with the 'path' directive?
>

Yup.

because e.g. the path will be different for different users connecting.
>

No, the var %USER% won't be different in the daemon because no client
environment variables affect a daemon (and you didn't mention anything
about running a daemon-over-ssh connection, where the $USER would be
whomever ssh-ed into the host to start the single-use daemon).  The only
exceptions to this are the RSYNC_* variables that rsync itself sets for
each connection (such as %RSYNC_USER_NAME%, which is the authorizing user).

But this 'delayed expansion' isn't done anywhere in the code
>

Sure it is.  It's in all the FN_GLOBAL_STRING() and FN_LOCAL_STRING()
expansions.  Otherwise none of the RSYNC_* vars would work.

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to