Delayed variable expansion for P_PATH/P_STRING is missing (loadparm.c)
wayned at samba.org
Mon Dec 23 18:19:19 MST 2013
On Mon, Dec 23, 2013 at 11:42 AM, Florian Sager <sager at agitos.de> wrote:
> are you sure you tried it with the 'path' directive?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rsync