summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2000-10-30 12:57:32 +0000
committerRichard Sharpe <sharpe@samba.org>2000-10-30 12:57:32 +0000
commit08888fe38b03047a53952d97ef06836ec6fade3d (patch)
tree95afec67820024be0f67de80ce056d59dcbfe4fa
parentb021210a476d3faf1e5e2405ef7cb8c646447def (diff)
downloadsamba-08888fe38b03047a53952d97ef06836ec6fade3d.tar.gz
samba-08888fe38b03047a53952d97ef06836ec6fade3d.tar.xz
samba-08888fe38b03047a53952d97ef06836ec6fade3d.zip
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.
-rw-r--r--source/lib/substitute.c3
1 files changed, 3 insertions, 0 deletions
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());