2.0.5 problem with variable substitutions
Todd Pfaff
pfaff at edge.cis.McMaster.CA
Wed Jul 21 03:58:10 GMT 1999
I have a problem with 2.0.5 that did not happen in 2.0.4b or previous
releases. I am seeing thousands of these messages in log.smb:
[1999/07/20 23:44:24, 0] lib/util_str.c:string_sub(1095)
ERROR: string overflow by 7 in string_sub(%M, 967)
and the smbd process seems to be stuck in a tight loop.
It's caused by the variable substitutions in these lines from smb.conf:
root preexec = [ %U != nobody ] && /usr/openwin/bin/sessreg -a -l s/%M -s %d %U
root postexec = [ %U != nobody ] && /usr/openwin/bin/sessreg -d -l s/%M -s %d %U
If I comment out these lines, all is well. If I take out the %M it fails
on the %d:
[1999/07/20 23:53:59, 0] lib/util_str.c:string_sub(1095)
ERROR: string overflow by 2 in string_sub(%d, 962)
--
Todd Pfaff \ Email: pfaff at mcmaster.ca
Computing and Information Services \ Voice: (905) 525-9140 x22920
ABB 132 \ FAX: (905) 528-3773
McMaster University \
Hamilton, Ontario, Canada L8S 4M1 \
More information about the samba
mailing list