%U and %u functionality change in 2.2??
Herb Lewis
herb at chomps.engr.sgi.com
Wed Apr 25 18:12:56 GMT 2001
Matthew Keller wrote:
>
> On 25 Apr 2001 09:16:07 -0700, Gerald Carter wrote:
> > Is it not being expanded?
>
> It seems to be interpretted literally within the include line.
> Within the "path" line, %U is returning the username in all caps,
> and %u is returning the username in lowercase (or, perhaps
> "properly").
>
Well lp_file_list_changed (which is where smbd checks the smb.conf
files only uses standard_sub_basic on the file name. This only allows
the following parameters.
switch (*(p+1)) {
case 'I' : string_sub(p,"%I", client_addr(),l); break;
case 'L' : string_sub(p,"%L", local_machine,l); break;
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 'a' : string_sub(p,"%a", remote_arch,l); break;
case 'd' :
slprintf(pidstr,sizeof(pidstr)-1, "%d",(int)sys_getpid());
string_sub(p,"%d", pidstr,l);
break;
case 'h' : string_sub(p,"%h", myhostname(),l); break;
case 'm' : string_sub(p,"%m", remote_machine,l); break;
case 'v' : string_sub(p,"%v", VERSION,l); break;
case '$' : p += expand_env_var(p,l); break; /* Expand environment
variables */
case '\0':
p++;
break; /* don't run off the end of the string */
default: p+=2;
break;
}
--
======================================================================
Herb Lewis Silicon Graphics
Networking Engineer 1600 Amphitheatre Pkwy MS-510
Strategic Software Organization Mountain View, CA 94043-1351
herb at sgi.com Tel: 650-933-2177
http://www.sgi.com Fax: 650-932-2177
======================================================================
More information about the samba
mailing list