BUG - SAMBA_2_2 Win9X profiles are broken
Richard Sharpe
sharpe at ns.aus.com
Mon Oct 30 13:17:37 GMT 2000
OK,
Committed. For those who can't wait, attached is a diff. Apply it to
source/lib/substitute.c by:
cd source/lib
patch < /path/to/diff/file ...
And rebuild and reinstall Samba ...
-------------- next part --------------
--- substitute.c.orig Mon Oct 30 22:54:05 2000
+++ substitute.c Mon Oct 30 23:23:27 2000
@@ -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 @@
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());
-------------- next part --------------
Regards
-------
Richard Sharpe, sharpe at ns.aus.com
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba
More information about the samba-technical
mailing list