From 08888fe38b03047a53952d97ef06836ec6fade3d Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Mon, 30 Oct 2000 12:57:32 +0000 Subject: Fixing someone's problem where %U was not being substituted. Not sure if this is the right fix ... Will take more code perusing than I have done so far, and may need to look things up in a vuid? Anyway, NET USE H: /HOME now works for Win9X clients ... Now for Win2K which does not work. One of the RPCs is not working. --- source/lib/substitute.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/lib/substitute.c b/source/lib/substitute.c index 0212147161f..ddd3715542f 100644 --- a/source/lib/substitute.c +++ b/source/lib/substitute.c @@ -24,6 +24,8 @@ extern int DEBUGLEVEL; +extern pstring sesssetup_user; + fstring local_machine=""; fstring remote_arch="UNKNOWN"; pstring sesssetup_user=""; @@ -174,6 +176,7 @@ void standard_sub_basic(char *str) case 'M' : string_sub(p,"%M", client_name(),l); break; case 'R' : string_sub(p,"%R", remote_proto,l); break; case 'T' : string_sub(p,"%T", timestring(False),l); break; + case 'U' : string_sub(p,"%U", sesssetup_user,l); break; case 'a' : string_sub(p,"%a", remote_arch,l); break; case 'd' : slprintf(pidstr,sizeof(pidstr), "%d",(int)sys_getpid()); -- cgit