CVS update: samba/source/lib
Christopher R. Hertel
crh at NTS.Umn.EDU
Wed Aug 12 00:47:23 EST 1998
Thanks, Andrew.
The contents of format_bufr are passed through vslprintf() before being
being placed into the buffer, so I assumed that there would be no '%'
escapes left. I'd be interested in knowing how they are preserved through
the vslprintf() call.
Chris -)-----
>
>
> Date: Wednesday August 12, 1998 @ 0:09
> Author: tridge
>
> Update of /data/cvs/samba/source/lib
> In directory samba:/tmp/cvs-serv7168
>
> Modified Files:
> debug.c
> Log Message:
> fixed a nasty bug in debug.c
>
> Debug1() was being called like this:
>
> Debug1( format_bufr );
>
> but if format_bufr contains any %s or other % arguments (such as when
> processing a smb.conf file containing % macros) then smbd dies a
> horrible death.
>
> The quick fix is to use:
>
> Debug1( "%s", format_bufr);
>
>
--
Christopher R. Hertel -)----- University of Minnesota
crh at nts.umn.edu Networking and Telecommunications Services
More information about the samba-cvs
mailing list